How to use Device Zone Assignment (iOS App)

Edit: it is working if i use the friendly name “Home” rather than “zone.home” in the template sensor.

sensor:
    - platform: google_travel_time
      name: test
      api_key: !secret google_api
      origin: device_tracker.ryaniphone
      destination: sensor.my_destination

Then a template sensor.

my_destination:
  value_template: '{%-if is_state("device_tracker.ryaniphone","work")-%}Home{%- else -%}Work{%- endif %}'
  friendly_name: 'My Destination'

this idea was borrowed from

1 Like