mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
waze_travel_time update template sensor example (#20019)
This commit is contained in:
parent
0566ada748
commit
0cfc528a5b
@ -43,20 +43,19 @@ input_select:
|
||||
- Work
|
||||
- Parents
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
dest_address:
|
||||
value_template: >-
|
||||
{%- if is_state("input_select.destination", "Home") -%}
|
||||
725 5th Ave, New York, NY 10022, USA
|
||||
{%- elif is_state("input_select.destination", "Work") -%}
|
||||
767 5th Ave, New York, NY 10153, USA
|
||||
{%- elif is_state("input_select.destination", "Parents") -%}
|
||||
178 Broadway, Brooklyn, NY 11211, USA
|
||||
{%- else -%}
|
||||
Unknown
|
||||
{%- endif %}
|
||||
template:
|
||||
- sensor:
|
||||
- name: "Destination address"
|
||||
state: >-
|
||||
{%- if is_state("input_select.destination", "Home") -%}
|
||||
725 5th Ave, New York, NY 10022, USA
|
||||
{%- elif is_state("input_select.destination", "Work") -%}
|
||||
767 5th Ave, New York, NY 10153, USA
|
||||
{%- elif is_state("input_select.destination", "Parents") -%}
|
||||
178 Broadway, Brooklyn, NY 11211, USA
|
||||
{%- else -%}
|
||||
Unknown
|
||||
{%- endif %}
|
||||
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user