From 01e0912ef44716fdd6ca9bb10360961ecf41051a Mon Sep 17 00:00:00 2001 From: ccostan Date: Sun, 5 Jul 2020 14:33:50 -0400 Subject: [PATCH] Final Touches. Adding in Lime Since sensors since it useful to see how long a door is in a particular state (according to the device and not home assistant) #642 --- .../Timed_Triggers/startup_notification.yaml | 4 ++-- config/packages/garadget.yaml | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/config/automation/Timed_Triggers/startup_notification.yaml b/config/automation/Timed_Triggers/startup_notification.yaml index ba15805b..dd41a906 100755 --- a/config/automation/Timed_Triggers/startup_notification.yaml +++ b/config/automation/Timed_Triggers/startup_notification.yaml @@ -20,12 +20,12 @@ - service: mqtt.publish data: - topic: "garadget/Garadget Small/command" + topic: "garadget/GSmall/command" payload: "get-status" - service: mqtt.publish data: - topic: "garadget/Garadget Large/command" + topic: "garadget/GLarge/command" payload: "get-status" - condition: state diff --git a/config/packages/garadget.yaml b/config/packages/garadget.yaml index a47fb393..75629a4a 100755 --- a/config/packages/garadget.yaml +++ b/config/packages/garadget.yaml @@ -37,6 +37,16 @@ cover: payload_close: "close" payload_stop: "stop" +sensor: + - platform: mqtt + name: "Large Garage Door Since" + state_topic: "garadget/GLarge/status" + value_template: '{{ value_json.time }}' + - platform: mqtt + name: "Small Garage Door Since" + state_topic: "garadget/GSmall/status" + value_template: '{{ value_json.time }}' + group: garage_doors: # This group is used to check if doors are open or Closed. name: Garage Doors