Getting a little Closer to the Finish line. #642

This commit is contained in:
ccostan 2020-07-05 13:49:46 -04:00
parent 533dc98b80
commit 385c07e211
1 changed files with 12 additions and 0 deletions

View File

@ -28,6 +28,12 @@ cover:
device_class: 'garage'
command_topic: "garadget/GSmall/command"
state_topic: "garadget/GSmall/status"
value_template: >-
{% if value_json.status == 'closed' %}
closed
{% else %}
open
{% endif %}
payload_open: "open"
payload_close: "close"
payload_stop: "stop"
@ -37,6 +43,12 @@ cover:
device_class: 'garage'
command_topic: "garadget/GLarge/command"
state_topic: "garadget/GLarge/status"
value_template: >-
{% if value_json.status == 'closed' %}
closed
{% else %}
open
{% endif %}
payload_open: "open"
payload_close: "close"
payload_stop: "stop"