i wrote an automation if somebody comes home that the light is switching on an a push notification should be send out who is home.
So far the automation works nice but i have the problem with the push-notification:
service: notify.family_push
data:
message: >-
{{ 'NameA' if trigger.to_state.entity_id == 'device_tracker.xxxNameA' else
'NameB' }} is {{ trigger.to_state.state }}
When device_tracker.xxxNameA went home i alway get as pushnofication: NameB is home. So never getting NameA is home
Thanks a lot now it works!.
There is a device_tracker.A2 and device_tracker.A but only A2 is tracked by HA. Why ever there is a A2.
Nevertheless now it works fine.