r/homeassistant • u/forresearchpurposes7 • 5h ago
Support Automations failing to trigger
I have been having some issues where some of my automations are not firing, specifically ones triggered when my phone leaves an area. Is there a way to have a helper or an integration that can monitor this? Maybe I create an automation to check and if certain automations don't trigger on a regular interval I get a notification...?
0
Upvotes
1
u/wivaca2 4h ago edited 4h ago
Is this using the basic zone stuff or some other occupancy/proximity stuff? A few tips for debugging it:
- Verify your yaml formatting is good using developer tools yaml buttons. Reloading is sometimes necessary after saving the automation.
- Test your triggers using the developer tools template. Make sure you're selecting the right entities and attributes. States might help you pick the right data to monitor. Event monitoring is also helpful to see what IS happening when you leave the area. Since this is location stuff, you can get to them from your phone using the Companion app while you exit the zone with someone else driving.
- Check your traces and see if it's really the trigger or instead maybe one of the actions is actually failing and stopping execution. The trace pulldown at the top will show you several traces (assuming there are any).
- Ensure nothing is disabled in steps or at the whole automations level
- Disable the automation you have and try rewriting it from scratch another way
1
u/dichron 5h ago
You could just attach a notify_mobile_app action to the automation in question and if it doesn’t notify you when you expect it to, you know it’s not getting triggered