mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
Update cover state on change
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
mqtt:
|
||||||
|
sensor:
|
||||||
|
- name: 'cover_changed'
|
||||||
|
state_topic: "z2m_deconz/living_room_cover/set"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
open_living_room_cover:
|
open_living_room_cover:
|
||||||
sequence:
|
sequence:
|
||||||
@@ -22,6 +27,17 @@ script:
|
|||||||
|
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
|
- alias: Cover · update state when change requested
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: sensor.cover_changed
|
||||||
|
action:
|
||||||
|
- delay: 00:00:15
|
||||||
|
- service: mqtt.publish
|
||||||
|
data_template:
|
||||||
|
topic: "z2m_deconz/living_room_cover/get"
|
||||||
|
payload: "{ \"state\": \"\" }"
|
||||||
|
|
||||||
- alias: Cover · Living Room · Open at morning
|
- alias: Cover · Living Room · Open at morning
|
||||||
trigger:
|
trigger:
|
||||||
platform: time
|
platform: time
|
||||||
|
|||||||
Reference in New Issue
Block a user