Coffee
Connect practice coffee machines, automate warm-up or brewing on breaks and clock-ins, and track clinic coffee statistics.
Connect the practice's coffee machines in Settings → Integrations → Coffee to warm them up before breaks, brew automatically with built-in cup-safety checks, and review cup counts and peak hours in the Coffee report.
All machine setup, manual controls (Turn on, Turn off, Brew now, Sync now) and automations stay inside Settings → Integrations → Coffee so the rest of Smileline stays clutter-free.
Supported brands and bridges
- Home Connect (OAuth 2.0) — native cloud integration for Bosch, Siemens, Gaggenau, Neff and Thermador bean-to-cup machines. Supports power control, drink selection (espresso, coffee, cappuccino, latte macchiato, flat white and more), beverage counter sync and maintenance alerts.
- Home Assistant — connects Jura, De'Longhi, La Marzocco, SwitchBot and any other coffee machine or smart plug managed by Home Assistant through an HTTPS webhook trigger, plus an optional inbound webhook URL to report on-machine brews and alerts back to Smileline.
- Shelly Cloud — connects Shelly smart plugs and relays (such as Shelly Plus Plug S, Plug UK or 1PM) for any espresso machine. Supports power on/off and live wattage telemetry.
- Custom Webhook — signed outbound HTTPS commands (
X-Smileline-SignatureHMAC-SHA256) and a per-connection inbound telemetry URL for custom IoT bridges or commercial machines. - Virtual Simulator — built-in simulated bean-to-cup machine that needs zero hardware or credentials, ideal for testing break automations, cup safety guards, maintenance alerts and the Coffee report immediately.
Connect a machine
Open Settings → Integrations → Coffee (available to owners and managers with settings permission).
Click Add machine (or Try Virtual Simulator on an empty page) and pick your provider and clinic location.
Complete the provider sign-in or bridge credentials:
- For Home Connect, click Continue to Home Connect and authorise your practice's account in the same browser session.
- For Shelly Cloud, enter your Shelly Cloud server host (for example
shelly-42-eu.shelly.cloud), your Authorization cloud key and the device ID. - For Home Assistant or Custom Webhook, enter your HTTPS webhook URL. Save the one-time signing secret and inbound telemetry URL shown once the machine connects.
Home Assistant example
Create a webhook-triggered automation in Home Assistant to handle Smileline commands, and optionally add a rest_command to report on-machine brews back to the inbound telemetry URL Smileline gives you:
# configuration.yaml
rest_command:
smileline_coffee_event:
url: "https://api.smileline.io/webhooks/coffee/inbound/<your-token>"
method: POST
content_type: "application/json"
payload: '{"eventId":"{{ event_id }}","event":"brew","drinkType":"{{ drink_type }}","cups":1,"occurredAt":"{{ now().isoformat() }}"}'# automations.yaml
- alias: Smileline coffee commands
trigger:
- platform: webhook
webhook_id: smileline_coffee
allowed_methods: [POST]
local_only: false
action:
- choose:
- conditions: "{{ trigger.json.action == 'power_on' }}"
sequence:
- service: switch.turn_on
target:
entity_id: switch.staff_room_espresso
- conditions: "{{ trigger.json.action == 'power_off' }}"
sequence:
- service: switch.turn_off
target:
entity_id: switch.staff_room_espressoEvery outbound webhook command includes X-Smileline-Timestamp (Unix seconds) and X-Smileline-Signature in the form t=<unix>,v1=<hex>, where <hex> is the HMAC-SHA256 of ${timestamp}.${rawBody} using your connection's signing secret.
Custom Webhook inbound telemetry
Any bridge can report brews, machine status or maintenance alerts by posting JSON to the connection's inbound URL:
curl -X POST "https://api.smileline.io/webhooks/coffee/inbound/<your-token>" \
-H "Content-Type: application/json" \
-d '{
"eventId": "cup-2026-11-22-0905",
"event": "brew",
"drinkType": "flat_white",
"cups": 1,
"occurredAt": "2026-11-22T09:05:00Z"
}'Give every brew a unique eventId: a request repeated with the same eventId counts once, so your bridge can safely retry. A brew sent without one counts as a new cup on every request. An update Smileline can't read, or one for a machine it doesn't have, waits in the review queue for you to check.
Status updates and alerts that arrive late never overwrite newer ones the machine has already reported.
Automations
Automations evaluate automatically every minute in your clinic's local timezone:
- Rota break — triggers when a scheduled break starts on the clinic rota, with an optional lead time of 0–15 minutes beforehand, optional break-label filter (such as
Lunch) and optional staff filter. - Team calling break — triggers when a team member switches their phone availability to On break.
- First clock-in — triggers once per day when the first team member clocks in at the machine's site.
- Daily schedule — triggers at a fixed local time on chosen weekdays (for example Monday–Friday at 08:00 to preheat the machine).
- Patient arrived — triggers when a patient is marked arrived at the machine's site, optionally restricted to first-visit patients or specific appointment types.
Event triggers can also carry an optional local active-hours window so machines stay quiet outside opening hours. A brew, automated or with Brew now, can only use a drink the machine supports.
Cup safety and cooldown
Remote brewing dispenses hot liquid. Never turn on Allow remote brewing unless your team keeps a cup positioned under the spout. Warm up / Turn on is the safest default for break and morning automations.
Smileline enforces layered physical safety checks before dispatching any remote brew:
- Machine opt-in — Allow remote brewing defaults to Off on every newly connected machine.
- Automation confirmation — every brew automation requires an explicit cup-safety confirmation before it can be saved or enabled.
- Cooldown window — after a brew starts, Smileline enforces a per-machine cooldown (default 5 minutes, configurable from 1 to 60 minutes) to prevent back-to-back overflow.
- Live status and alerts — brews are skipped if the machine is busy, offline, not armed for remote start, or reporting a blocking alert (water empty, beans empty, drip tray full or fault). Turn off is also skipped while a brew is in progress or inside the cooldown window.
- At-most-once dispatch — a timed-out brew command is recorded as Uncertain and is never automatically retried.
Sync now
Sync now reads a connection's machines straight away. For Home Connect it also adds any coffee machine added to the Home Connect account since you connected it. If an automatic sync is already running, wait a moment and try again.
Coffee report
Once at least one coffee machine is connected (or historical brew data exists), the Coffee report appears under Reports → Practice → Coffee. See Practice reports for what each tile, chart and table measures.