So if you’ve seen my posts in other threads, I’m using Zanzito and was running into issues where GPS was causing multiple zone transitions. After some testing, I’ve determined my fix by switching off high-precision was a working solution (for the most part–I have other plans if not.)
One thing I just ran into is my wife left the house with me still home and my automation ended up firing multiple MQTT changes to my device causing 8 zone notifications After staring at it for a bit I realized that it was sending the MQTT service call regardless of who entered/left:
So it seems to me that I need to use a service_template here in a scenario like so:
{% if trigger.entity_id == 'device_tracker.homeassistant_asusz012d' %}
And I’ve looked at a handful of examples but can’t get working solution. Basically I want the MQTT to only target when my device triggers the automation, not any device and I’ve hit a wall on it.
It runs the ‘wake up’ script every time the alarm time is reached, but only switches the boolean off if I haven’t selected the alarm to repeat the next day.
My YAML looks exactly like yours Just need someone to leave the house now to test. Fairly certain this is what I want so I’ll mark it as solution. Always appreciate the help, in the past and today!
Worked! When I switched to not_home it fired. When I switched to home however, it didn’t so I’m still missing something but not related to this. many thanks my friend!
EDIT: Figured it out, shouldn’t be in zone automation, should be in my home/not_home automation.