Two trigger nodes action in sequence

First trigger node (presence) activates second trigger node (door open) which casts greeting to Google.

[{"id":"87beabed.c2c1a8","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"e4c8aaaa.109988","type":"trigger-state","z":"87beabed.c2c1a8","name":"away --> home","server":"5253889.fa04678","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"device_tracker.life360_trevor","entityidfiltertype":"exact","debugenabled":false,"constraints":[{"id":"m9kbqnu7l3t","targetType":"this_entity","targetValue":"","propertyType":"previous_state","propertyValue":"old_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"away"},{"id":"0thvt0jyidog","targetType":"this_entity","targetValue":"","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"home"}],"constraintsmustmatch":"all","outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"str","x":140,"y":240,"wires":[["8873eb4f.44bdd8"],[]]},{"id":"8873eb4f.44bdd8","type":"change","z":"87beabed.c2c1a8","name":"enable","rules":[{"t":"set","p":"payload","pt":"msg","to":"enable","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":240,"wires":[["37b05f5e.2cd5c"]]},{"id":"37b05f5e.2cd5c","type":"trigger-state","z":"87beabed.c2c1a8","name":"Front door opens","server":"5253889.fa04678","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"binary_sensor.wyzesense_frontdoor","entityidfiltertype":"exact","debugenabled":false,"constraints":[{"id":"96r98u7fc8","targetType":"this_entity","targetValue":"","propertyType":"previous_state","propertyValue":"old_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"},{"id":"kyot5ek6qg","targetType":"this_entity","targetValue":"","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"on"}],"constraintsmustmatch":"all","outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"str","x":550,"y":240,"wires":[["b93d040e.44a2d8"],[]]},{"id":"b93d040e.44a2d8","type":"change","z":"87beabed.c2c1a8","name":"\"Welcome Home\"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Welcome Home","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":240,"wires":[["a9461e4f.ecbec"]]},{"id":"a9461e4f.ecbec","type":"cast-to-client","z":"87beabed.c2c1a8","name":"","url":"","contentType":"","message":"The front door is open","language":"en","ip":"192.168.0.19","port":"","volume":"","x":1090,"y":20,"wires":[[]]},{"id":"5253889.fa04678","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

Collection Info

prev next

Flow Info

Created 5 years, 8 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • change (x2)
Other

Tags

  • Home-Assistant
  • trigger
  • cast
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option