17 lines
518 B
YAML
17 lines
518 B
YAML
- platform: template
|
|
sensors:
|
|
garage_door:
|
|
unit_of_measurement: ''
|
|
value_template: >-
|
|
{%- 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 %}
|
|
Unknown
|
|
{%- endif %}
|