Everyone away and alarm disarmed - node-red

Hi,

I’d like to have a flow that does the following:

-when “device_tracker.a” and “device_tracker.b” are both away
and:
-when alarm_control_panel.alarm_partition_1 is disarmed
then:
-notify “mobile_app_iphone_14” and say “xxxxxx - enter text here”

Because the status of both trackers may not always be the same (away/home, etc.) I think it might be necessary to run the flow at certain intervals during a 24 hour period (if there is a way around that, I am open to that, too.)

If you have a solution to this and are able to post the code, that would be great.

Thank you

The inject Node can be set up to run at different intervals.
Look at the bottom of the node config page.

Use a trigger-state node.

image

image

1 Like