Hi,
Currently pulling over some automatons I have in yaml to node-red and trying to tweak (i.e. make better) at the same time. I’m a HA noob so bear with me
Automation in yaml currently switches on light 30min before sunset IF either myself OR my partner are home. I did this with this in groups.yaml
People:
- device_tracker.me
- device_tracker.her
and then the following condition within the relevant automation:
condition:
- condition: state
entity_id: group.people
state: 'home'
The current sequence (flow) in node-red looks like this. This successfully turns on the lights 30min before sunset but doesn’t do any presence checking to see if we’re home
1st Question - How to I check for presence detection in node-red? Is it with the state node? Should this be before or after the switch in the sequence?
2nd Question - Assume its after sunset and neither of us are home so the lights are OFF. One of us then comes home…so I want them to turn on. The current automation trigger is the Bigtimer (at sunset) which has run and then stopped (we’re not home). How can i integrate this extra condition to turn ON after sunset when we come home? Is it easier to break this out to a separate automation?