How to trigger a flow from Home Assistant

I would like to find a way to start a Node Red flow from Home Assistant. Any suggestions would be appreciated.

If you have the NR integration installed use the button node to create a button inside HA. If not create a button helper in HA and use an events state node to listen for the press.

Thanks, I tried the button node but I couldn’t get anything out of the node when I changed the entity state in Developer Tools.

nr test

[{"id":"eea5464ce78aa270","type":"ha-button","z":"e982ec38.fd46","name":"Good Morning","version":0,"debugenabled":false,"outputs":1,"entityConfig":"294bb4787bec72d6","outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":210,"y":660,"wires":[["a20f36a9455036e4"]]},{"id":"a20f36a9455036e4","type":"debug","z":"e982ec38.fd46","name":"debug 12","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":400,"y":660,"wires":[]},{"id":"294bb4787bec72d6","type":"ha-entity-config","server":"cc0d1734.6963a8","deviceConfig":"aafb630d412a091e","name":"Good_Morning","version":"6","entityType":"button","haConfig":[{"property":"name","value":"Good Morning Stephen"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false},{"id":"cc0d1734.6963a8","type":"server","name":"Home Assistant- Raspberry","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true},{"id":"aafb630d412a091e","type":"ha-device-config","name":"good_morning","hwVersion":"","manufacturer":"Node-RED","model":"","swVersion":""}]

You have to use the service call button.press

1 Like

Many thanks. That did exactly what I wanted.