Hi guys. Can anybody help me with a condition templating, please? I would need this one: If device_tracker.NAME status changes to “not_home”, the automation trigger is started to be valid only after 30 minutes. (Easier explanation: When I am not at home for more than 30 minutes, the automation is valid).
This will be true only if both trackers are not home for 30 minutes. If you want it to be true if either one of the trackers is away for 30 minutes you need to use the OR condition:
- condition: or
conditions:
- condition: state
entity_id: device_tracker.name
state: "not_home"
for:
minutes: 30
- condition: state
entity_id: device_tracker.name2
state: "not_home"
for:
minutes: 30