mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-05-21 22:59:59 +00:00
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
|
||||||
{% else %}
|
{% elif is_state("cover.garage_door", "opening") %}
|
||||||
{{ states.sensor.garage_door.state }}
|
Opening
|
||||||
{%- endif %}
|
{% elif is_state("cover.garage_door", "closed") %}
|
||||||
|
Closed
|
||||||
|
{% elif is_state("cover.garage_door", "closing") %}
|
||||||
|
Closing
|
||||||
|
{% else %}
|
||||||
|
Unknown
|
||||||
|
{%- endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user