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





