I have an automation that simulates a garage door opener that I want to trigger when a Life360 member comes home.
This does not throw an error but, it does not fire
- id: '1601926399383'
alias: Sue's Home
description: ''
trigger:
- platform: state
entity_id: device_tracker.life360_sue_xxxx
from: away
to: home
condition: []
action:
- condition: state
entity_id: automation.garage_door_remote
state: ''
mode: single
Here is the code I use for exactly the same automation and it work fine:
- id: 'mirek_returns_home'
alias: 'Mirek returns home'
initial_state: true
trigger:
platform: zone
entity_id: device_tracker.life360_miroslaw_malinowski
zone: zone.home
event: enter
condition:
- condition: state
entity_id: sensor.mirek_car_presence
state: 'Garage is empty'
- condition: state
entity_id: sensor.garage_mirek
state: 'closed'
action:
- service: script.toggle_mirek_garage_door
Please note additional 2 conditions I use to be sure that garage is not opened unnecessarily; I’ checking if my car is in garage (i might approach home in wife’s car, biking or just walking) and if garage door is closed (i have single button trigger to open/close/stop garage doors).
But basically I’m using different trigger than you, based on event, not state change.