First of all, greetings to all. I’m new with HA and I’m trying to get my first automation. It’s very basic, but it’s not working:
# Encender luz al llegar
trigger:
- entity_id: device_tracker.xxxxxxxxxx (correct device, I tested)
platform: state
from: 'away'
to: 'home'
action:
- service: switch.turn_on
entity_id:
- switch.xxxxxxxxxxxxxxxxxxx (correct number, I tested)
I can see the smartphone going from away to home, but automation is not released. If I run the trigger the switch goes to on and I have light.
Any help?
Thanks.