Tweaking garage door sensor
This commit is contained in:
parent
f951d48906
commit
d1e6b18ab9
|
@ -3,8 +3,14 @@
|
||||||
garage_door:
|
garage_door:
|
||||||
unit_of_measurement: '%'
|
unit_of_measurement: '%'
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{%- if states.cover.garage_door }
|
{%- if is_state("cover.garage_door", "open") %}
|
||||||
{{ states.cover.garage_door }}
|
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 %}
|
{% else %}
|
||||||
{{ states.sensor.garage_door.state }}
|
Unknown
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
Loading…
Reference in New Issue