Tweaking garage door sensor

This commit is contained in:
Jeffrey Stone 2017-04-08 22:50:01 -04:00
parent f951d48906
commit d1e6b18ab9
1 changed files with 11 additions and 5 deletions

View File

@ -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 %}