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