Tweaking garage door sensor
This commit is contained in:
parent
f951d48906
commit
d1e6b18ab9
|
@ -3,8 +3,14 @@
|
|||
garage_door:
|
||||
unit_of_measurement: '%'
|
||||
value_template: >-
|
||||
{%- if states.cover.garage_door }
|
||||
{{ states.cover.garage_door }}
|
||||
{%- if is_state("cover.garage_door", "open") %}
|
||||
Open
|
||||
{% elif is_state("cover.garage_door", "opening") %}
|
||||
Opening
|
||||
{% elif is_state("cover.garage_door", "closed") %}
|
||||
Closed
|
||||
{% elif is_state("cover.garage_door", "closing") %}
|
||||
Closing
|
||||
{% else %}
|
||||
{{ states.sensor.garage_door.state }}
|
||||
Unknown
|
||||
{%- endif %}
|
||||
|
|
Loading…
Reference in New Issue