JimBr0
(Jim)
April 20, 2022, 1:07pm
1
Slow smartthings convert here…getting my feet wet. I’m trying to get presence to trigger an automation but it only works for me. My ‘person’ is the only administrator…that’s the only difference I can see.
I have each person tied to their mobile via ASUSWRT. It shows up for everyone as device_tracker.name_some_device and another without their name. For instance in “people” my wife has two devices available and mapped to her person: device_tracker.oneplus_8_5g and device_tracker.rafi_s8.
When I enter “home” with this automation, the dashboard changes to “home” and the automation runs. When either family member returns home, the dashboard changes but nothing else happens. What could be going on here? The automation snippet below is the same for everyone.
Thanks in advance,
Jim
alias: unlock door when Rafi enter home zone
description: ''
trigger:
- platform: zone
entity_id: person.rafi
zone: zone.home
event: enter
condition: []
Pippyn
April 20, 2022, 1:15pm
2
JimBr0:
entity_id:
Did you change the entity_id
value for each automation to the correct person?
FYI: depending on the actions and conditions of the automations, you could just combine everything in one automation
JimBr0
(Jim)
April 20, 2022, 2:40pm
3
Yes…in fact I’ve changed the script to all of us at once. I have been testing it with developer tools / states, setting state to “not_home” and “home” for each person/entity. It toggles the dashboard…but doesn’t trigger the automation. Is there a different variable for ‘person’ automation triggers?
alias: Return Home
description: ''
trigger:
- platform: zone
entity_id:
- person.jim
- person.weston
- person.rafi
zone: zone.home
event: enter
condition: []
action:
- service: media_player.play_media
target:
entity_id: media_player.home_group_2
data:
media_content_id: media-source://tts/google_translate?message=Welcome+Home
media_content_type: provider
metadata:
title: Welcome Home
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
media_class: app
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://tts
- media_content_type: provider
media_content_id: media-source://tts/google_translate?message=Welcome+Home
mode: single
There have been issues with Zone triggers and router-based presence for a while.
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)
Use a state trigger instead:
trigger:
- platform: state
entity_id:
- person.jim
- person.weston
- person.rafi
to: home
JimBr0
(Jim)
April 20, 2022, 8:07pm
5
Thanks, that works perfectly!