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

This commit is contained in:
ccostan 2020-07-05 14:33:50 -04:00
parent b8d726f9b9
commit 01e0912ef4
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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