Check a flow before building it
homey_flow_validateValidate a Homey flow before saving: verifies every card, argument, device, zone, and token reference, catching issues that would otherwise show as NO CARD or Unavailable.
Instructions
Checks a flow against this Homey without writing anything and without running anything: every card exists and is the right kind, every argument is named and typed correctly, every device and zone it names is still here, and every [[token]] reference names a value this Homey actually publishes, whether that is a device capability, a logic variable or a tag from an app. Worth calling first, because the Homey itself accepts almost anything. A flow naming a card that does not exist saves and shows as "NO CARD"; a token written with a colon instead of a pipe, or naming a tag that was never published, saves and shows as "Unavailable". Neither reports an error. The one thing it cannot judge is whether the flow does what the owner meant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What the flow is called. | |
| actions | No | What the flow does. | |
| trigger | Yes | The card that starts the flow. A flow cannot exist without one: the Homey stores the trigger in a NOT NULL column and rejects the flow otherwise. Use homey:manager:flow:programmatic_trigger for a flow that is only ever started by something else. | |
| conditions | No | Cards that decide whether the actions run. Omit for a flow that always runs. |