Tweaking garage door sensor
This commit is contained in:
parent
c44c8e9d6f
commit
f951d48906
|
@ -1,6 +1,10 @@
|
||||||
- platform: mqtt
|
- platform: template
|
||||||
name: "Garage Door"
|
sensors:
|
||||||
state_topic: "smartthings/Garage Door/contact"
|
garage_door:
|
||||||
qos: 0
|
unit_of_measurement: '%'
|
||||||
unit_of_measurement: ""
|
value_template: >-
|
||||||
value_template: '{{ value.x }}'
|
{%- if states.cover.garage_door }
|
||||||
|
{{ states.cover.garage_door }}
|
||||||
|
{% else %}
|
||||||
|
{{ states.sensor.garage_door.state }}
|
||||||
|
{%- endif %}
|
||||||
|
|
Loading…
Reference in New Issue