Change a Homey flow
homey_flow_updateUpdate an existing Homey flow by replacing its trigger, conditions, or actions. Also supports renaming and enabling/disabling with owner confirmation.
Instructions
Replaces the trigger, conditions and actions of an existing standard flow. Anything left out keeps its current value, but an array that IS sent replaces that array wholesale. A flow this server did not create belongs to the owner and needs confirm: true. The flow as it was is read first and returned in the result, so a wrong change can be put back by sending it again. Switching a flow that is off ON is a separate step that needs confirmEnable: true, because a flow that is off has never run in the house.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | Yes | The flow name or id to change. | |
| name | No | A new name. Leave out to keep the current one. | |
| actions | No | The complete new set of actions. Leave out to keep the current ones. | |
| confirm | No | Required when the flow was not created by this server. Confirms the owner asked for this change. | |
| enabled | No | Switch the flow on or off. Switching it OFF is always allowed. Switching a flow that is currently off ON is refused unless confirmEnable is also true, because a flow arrives switched off so that a person reads what it does before it can run the house, and this is that step. Ask the owner; do not confirm it on their behalf. | |
| trigger | No | A new trigger card. Leave out to keep the current one. | |
| conditions | No | The complete new set of conditions. An empty array removes them all. Leave out to keep the current ones. | |
| confirmEnable | No | Required only when enabled is true and the flow is currently off. Set it after the owner has seen what the flow does and said to switch it on, never merely because the flow looks finished. |