I’m trying to find a trigger I can use to open the garage door. I have two garage zones set up outside of our home zone - one in either direction of travel to/from home. I keep adding triggers on to this automation but it never triggers.
In developer tools, I watch as the device_tracker.pixel_6a changes from away to garage1 (zone) traveling toward home. When I look at the history for device_tracker.pixel_6a it does show a short stay in the garage1 zone. And the history for garage1 zone shows 1 person in the zone.
The sensor.ha_pi_pixel_6a_distance always seems to jump from a large number to 0 so I can understand why this doesn’t trigger. The history for HA_pi Pixel 6a Distance shows a jump from 807 to 0 feet.
The history for ha_pi zone (home) shows a change from 1 person to 2.
Please tell me what I’m doing wrong. This is driving me nuts!
alias: Garage door is opened because someone entered the garage zone
description: ""
trigger:
- platform: zone
entity_id:
- device_tracker.pixel_6a
zone: zone.garage1
id: him
event: enter
- platform: zone
entity_id:
- device_tracker.pixel_6a
zone: zone.garage2
id: him
event: enter
- platform: zone
entity_id:
- device_tracker.pixel_8
zone: zone.garage1
id: her
event: enter
- platform: zone
entity_id:
- device_tracker.pixel_8
zone: zone.garage2
id: her
event: enter
- platform: numeric_state
entity_id:
- sensor.ha_pi_pixel_6a_distance
id: him
below: 40
- platform: numeric_state
entity_id:
- sensor.ha_pi_pixel_8_distance
id: her
below: 40
- platform: zone
entity_id:
- device_tracker.pixel_6a
zone: zone.home
id: him
event: enter
- platform: zone
entity_id:
- device_tracker.pixel_8
zone: zone.home
id: her
event: enter
condition:
- condition: trigger
id:
- him
- condition: state
entity_id: sensor.ha_pi_pixel_6a_direction_of_travel
state: towards
- condition: trigger
id:
- her
- condition: state
entity_id: sensor.ha_pi_pixel_8_direction_of_travel
state: towards
action: []
mode: single