First, apologies for my English
I’m starting to use home assistant and I have a question
I need to create an automation only when the house stays empty we are only 2 people and I have several zones configured. When I do the automation, it does not help if I put it to run when our location is “not_home” because “BP” is another location, so I have to put, each location as a condition, I need something easier
here the example:
- id: ‘1551734681101’
alias: Loc OT sale CARI fuera
trigger:- entity_id: device_tracker.iphonex
event: leave
platform: zone
zone: zone.home
condition:
condition: or
conditions:- condition: state
entity_id: device_tracker.iphonema
state: not_home - condition: zone
entity_id: device_tracker.iphonema
zone: zone.asv - condition: zone
entity_id: device_tracker.iphonema
zone: zone.gimnasio
- condition: state
- entity_id: device_tracker.iphonex
Thanks!