From 385c07e211be2b5045f0d5ca795deb759802ac43 Mon Sep 17 00:00:00 2001 From: ccostan Date: Sun, 5 Jul 2020 13:49:46 -0400 Subject: [PATCH] Getting a little Closer to the Finish line. #642 --- config/packages/garadget.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/packages/garadget.yaml b/config/packages/garadget.yaml index 68358623..e5c2c29b 100755 --- a/config/packages/garadget.yaml +++ b/config/packages/garadget.yaml @@ -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"