Workflows
A workflow processes readings through a graph of steps and acts on them, for example "when the bedroom goes above 24 °C, turn on the fan". Open Workflows, choose a site, and create one. Workflows run in the cloud.
flowchart LR
t["When a reading arrives"] --> c{"Too warm?"}
c -- "true" --> a["Command a device"]
c -- "false" --> w["Call a webhook"]
Steps
| Category | Step | Does |
|---|---|---|
| Trigger | When a reading arrives | Starts on a reading, from any device on the site or chosen devices |
| Condition | Compare | Goes on along its true or false output |
| Condition | Time window | True between two times in the site's time zone (may pass midnight) |
| Process | Calculate | Adds, subtracts, multiplies or divides the value by a number |
| Process | Filter | Continues only when the value compares as set |
| Action | Command a device | Sends a command, with a deadline, like pressing the button yourself |
| Action | Call a webhook | Posts the event to an HTTPS address, signed with your account's webhook secret |
Building
Choose a step under Add a step, select it to set it up, then connect an output to an input: drag between the dots, or with the keyboard press Enter on an output button and then on an input button. Undo (Ctrl+Z) steps back. Checks lists errors, which block testing and publishing, and warnings, which don't. Select one to find the step.
Test, publish, turn on
- Test run runs your draft on a sample reading. Nothing is sent: commands and webhooks are simulated and labelled. Each step shows passed, stopped, failed or skipped, and the path lights up.
- Publish makes the draft the active version. Editing the draft never changes the active version until you publish again.
- On and Off start and stop the active version without editing it.
- Run history keeps the latest 1,000 runs. Select one to replay its path on the graph and see why it stopped or failed.
Rules
- People who can manage automations on the site edit, test and publish. Everyone who can see the site can view workflows and their runs.
- A live workflow acts as the person who last published it. If they lose access to the site or leave the account, its commands fail with that reason until someone publishes it again.
- Guarded actions (unlocking, mains power) are never available to workflows until an explicit policy for them exists.
- Publishing, turning on or off, and deleting are recorded in the audit log.