#Automation not triggering
1 messages · Page 1 of 1 (latest)
What do the traces say?
The traces are fine but it’s not triggering to provide traces at times. This morning I was in my back yard and it triggered but didn’t do it because I wasn’t connected to Bluetooth. Then I went to work, the locations triggered and the automations never did
Didn’t trigger again. Arrive is triggering but but leave
Not
Share the automation YAML. At least the triggers section
And clarify if it’s not triggering, or if it’s just that the actions (notifications) aren’t working
⌄
⌄
⌄
⌄
⌄
⌄
id: '1747534431021'
alias: Close garage when Rob iPhone leave
description: ''
triggers:
- device_id: a4f8b98eb0249e232070354e8c555a6d
domain: device_tracker
entity_id: 9b9d2919693a6e27533d8577dfe5b04a
type: leaves
trigger: device
zone: zone.garage_home
conditions: - condition: state
entity_id: input_boolean.in_car
state: 'on'
actions: - device_id: 2f98fd058e1da6f6aa9bea207aed6fd8
domain: cover
entity_id: 32a2ff7d5315853f18336fbb445ec533
type: close
mode: single
I don’t know what this means. It doesn’t list that it was run. The arrive and leave are the same. Arrive works. Leave is not triggering
To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.
I only see a trigger for leave. Where is the arrive trigger?
That is it the arrive is a separate automation. I can paste in. Same thing except arrive instead of leave
‘’’
id: '1747534316924'
‘’’
id: '1747534316924'
Ugh.
‘’’
id: '1747534316924'
‘’’
id: '1747534316924'
alias: Open garage when Rob phone comes home
description: ''
triggers:
- device_id: a4f8b98eb0249e232070354e8c555a6d
domain: device_tracker
entity_id: 9b9d2919693a6e27533d8577dfe5b04a
type: enters
trigger: device
zone: zone.garage_home
conditions: - condition: state
entity_id: input_boolean.in_car
state: 'on'
actions: - device_id: 2f98fd058e1da6f6aa9bea207aed6fd8
domain: cover
entity_id: 32a2ff7d5315853f18336fbb445ec533
type: open
mode: single
‘’’
For formatting: There’s a difference between an apostrophe and a backtick. On a US keyboard the backtick is on the same key as the tilde (~)
When you look at the history for your device tracker, is it changing zones when you expect it to? That would be the first thing to debug. If your device tracker isn’t entering or exiting the zone when you want, then of course the automation won’t trigger when you want
Sorry I’m doing it on iPhone
Yes it’s giving me notifications that its leaving garage home but it doesn’t trigger most of the time
The arrive seems to be triggering. Just fine. I have one called auto close as well that is working after 5 min but isn’t suppose to close if phone is in the in garage zone and it just closed. How do I confirm zones?
On iPhone if you hold down the apostrophe it will give you 4 options, the leftmost one is the backtick
You can look at history and select your device tracker to see when it was in each zone
Probably the best thing for debugging is go to developer tools -> states, search for your device tracker entity, and then walk with your phone from one zone to another and see when it changes
It fired today when we left I actually made a new one and today both went off but last night they didn’t.
Look in your history for the device tracker entity to see if it changed state last night when you expected the automation fire
You keep saying the automation isn’t firing when you expect it to. The next step is for you to do some investigation on your end to determine what is happening.
I’m trying it’s spinning a circle on the app and not coming up
I just noticed it had me entering all the zones from the street in back of my house. The zones are no where near the street
The history just spins on the local machine when I pick my iPhone. Same as on the companion app. Is there something I can do to fix it
Can you access your HA instance remotely?
Yes. I can access remotely. I did some developer thing to clear some database and now the history appears to work
Clearly left all the zones and no trigger. Even arrive didn’t trigger
Do you have overlapping or nested zones?
You might change the automation mode to restart or queued depending on what you are trying to achieve
What errors are you seeing on the logs?
None. I’m seeing it say it left one or arrived in the zone but they just don’t trigger. One triggered when I was already home today and trace showed the in car Boolean wasn’t on. What log would I check exactly?
Settings -> system -> logs
Just looked no errors and the automation worked this time. However it’s still firing when I’m going down the back of my house on the street and the zone is no where near there