Skip to content
Discussion options

You must be logged in to vote

I finally found how to solve it !

I've just changed type from "device_tracker" to "sensor"...
Now it's working ! I don't know why it wasn't working using "device_tracker" but "sensor" type does the job :)

              - type: sensor
                config:
                  name: Active Route
                  state_topic: "{{ base_topic ~ '/active_route' }}"
                  icon: mdi:routes
                  json_attributes_topic: "{{ base_topic ~ '/active_route' }}"
                  value_template: "{{ '{{' }} value_json.destination if value_json.error == None else value_json.error {{ '}}' }}"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NeWoKiKi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant