Create a Node-RED flow (tab)
nodered_create_flowCreate a new Node-RED flow tab with its nodes while leaving existing flows untouched, so you can add automations without disturbing other tabs.
Instructions
Add a new Node-RED flow (a new tab) with its nodes, leaving existing flows untouched. The 'flow' object should have a 'label' and a 'nodes' array (Node-RED node objects). Requires HA_ALLOW_WRITE=true and HA_ALLOW_CONFIG_WRITE=true. Safer than nodered_set_flows because it cannot disturb other tabs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | Yes | Flow object: { label, nodes: [...], configs?: [...] }. The new tab id is returned. | |
| instance_id | No | Optional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it. |