Towards the end of last week I was starting to set up some zone based notifications which seemed to work, but after the weekend (when I didn’t change anything) the automations are no longer triggering.
Any ideas why?
I’ve tried switching from person.xxxx to a device tracker but that didn’t work either. My home zone is specified via yaml with a 200m radius and when I look at the map in home assistant and the location of the people they do correctly register when they are at home or away.
This is very frustrating!
- id: '700'
alias: notify on zone home enter/leave
trigger:
- platform: zone
entity_id:
- person.bob
- person.sam
- person.jo
# - device_tracker.jophone
zone: zone.home
event: enter
- platform: zone
entity_id:
- person.bob
- person.sam
- person.jo
# - device_tracker.jophone
zone: zone.home
event: leave
condition:
- condition: state
entity_id: input_boolean.home
state: 'on'
action:
- variables:
event: "{{ 'left' if trigger.event == 'leave' else 'arrived at' }}"
person: "{{ trigger.to_state.attributes.friendly_name }}"
zone: "{{ trigger.zone.attributes.friendly_name }}"
- service: notify.mobile_app_nokia_8_1
data:
message: "{{person}} {{event}} {{zone}}"
For anyone else who comes across this:
opened 08:34PM - 12 Jun 21 UTC
integration: zone
### The problem
I have two automations that are triggered when I leave the hous… e and when I return. They have worked faultlessly for more than a year until April. Since the May update, however, the automations are only triggered sporadically - sometimes one of them, but usually none at all. I can't find a cause for this - the person's status is still recognised correctly and the absence times are correct.
How can I find out why the automations no longer trigger?
### What is version of Home Assistant Core has the issue?
2021.6.3 (issue first seen in 2021.5.x)
### What was the last working version of Home Assistant Core?
2021.4.x
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
zone
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/zone/
### Example YAML snippet
```yaml
alias: Abwesend
description: ''
trigger:
- entity_id: person.jens
event: leave
platform: zone
zone: zone.home
condition:
- condition: state
entity_id: input_boolean.heating_mode_auto
state: 'on'
action:
- service: input_select.select_option
target:
entity_id: input_select.heating_mode
data:
option: abwesend/zeitgesteuert
mode: single
alias: Anwesend
description: ''
trigger:
- entity_id: person.jens
event: enter
platform: zone
zone: zone.home
condition:
- condition: state
entity_id: input_boolean.heating_mode_auto
state: 'on'
action:
- service: input_select.select_option
target:
entity_id: input_select.heating_mode
data:
option: anwesend/zeitgesteuert
mode: single
```
### Anything in the logs that might be useful for us?
```txt
I don't think so
```
### Additional information
![Firefox_Screenshot_2021-06-12T20-09-22 017Z](https://user-images.githubusercontent.com/3628895/121788493-ed9aa000-cbcd-11eb-8ffe-760ece4e5749.png)
![Firefox_Screenshot_2021-06-12T20-10-13 149Z](https://user-images.githubusercontent.com/3628895/121788494-f25f5400-cbcd-11eb-9dd5-f631032aa1d2.png)
![Firefox_Screenshot_2021-06-12T20-11-14 151Z](https://user-images.githubusercontent.com/3628895/121788495-f5f2db00-cbcd-11eb-9acd-389ba2957e3e.png)
![Firefox_Screenshot_2021-06-12T20-11-56 875Z](https://user-images.githubusercontent.com/3628895/121788501-fab78f00-cbcd-11eb-9d1b-12e12f0ff655.png)
![Firefox_Screenshot_2021-06-12T20-11-42 067Z](https://user-images.githubusercontent.com/3628895/121788502-fe4b1600-cbcd-11eb-8144-ea5b3e42b7ad.png)
![Firefox_Screenshot_2021-06-12T20-12-28 275Z](https://user-images.githubusercontent.com/3628895/121788504-030fca00-cbce-11eb-8335-70840b878260.png)