mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Add living room cover
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
script:
|
||||
toggle_living_room_cover:
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions: >
|
||||
{{ state_attr('cover.living_room', 'current_position') == 0 }}
|
||||
sequence:
|
||||
- service: cover.set_cover_position
|
||||
entity_id: cover.living_room
|
||||
data:
|
||||
position: 80
|
||||
- conditions: >
|
||||
{{ state_attr('cover.living_room', 'current_position') >= 80 }}
|
||||
sequence:
|
||||
- service: cover.close_cover
|
||||
entity_id: cover.living_room
|
||||
default:
|
||||
- service: cover.close_cover
|
||||
entity_id: cover.living_room
|
||||
|
||||
|
||||
automation:
|
||||
- alias: Cover · Living Room · Open at morning
|
||||
trigger:
|
||||
platform: time
|
||||
at: "10:00:00"
|
||||
action:
|
||||
- service: cover.set_cover_position
|
||||
entity_id: cover.living_room
|
||||
data:
|
||||
position: 80
|
||||
|
||||
- alias: Cover · Living Room · Close after sunset
|
||||
trigger:
|
||||
platform: sun
|
||||
event: sunset
|
||||
offset: "+01:00:00"
|
||||
action:
|
||||
- service: cover.close_cover
|
||||
entity_id: cover.living_room
|
||||
Reference in New Issue
Block a user