Trying to make this work, the idea is that if anyone comes “home” a notification will get sent two two people with mobil apps but the message will say whom of the 4 are entering the home zone. Currently I get the following error…
Error: Error rendering data template: UndefinedError: ‘dict object’ has no attribute ‘to_state’
I assume it has to do with the format of the message?
alias: Hy Return Home
description: ""
triggers:
- entity_id: person.hy
zone: zone.home
event: enter
trigger: zone
- entity_id: person.hr
zone: zone.home
event: enter
trigger: zone
- entity_id: person.ryan
zone: zone.home
event: enter
trigger: zone
- entity_id: person.jen
zone: zone.home
event: enter
trigger: zone
conditions: []
actions:
- action: notify.mobile_app_rk_12_2
metadata: {}
data:
message: "{{ trigger.to_state.name }} is arriving"
- action: notify.mobile_app_jennifers_iphone_2
metadata: {}
data:
message: Hy Arrived at Home
mode: single