mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
update lr cover
This commit is contained in:
@@ -1,7 +1,2 @@
|
|||||||
v3_button_cover:
|
v3_button_cover:
|
||||||
template: [v3_button, cover]
|
template: [v3_button, cover]
|
||||||
state_display: |
|
|
||||||
[[[
|
|
||||||
if (entity?.state === 'closed') { return 'Closed' }
|
|
||||||
return entity?.attributes?.current_position + '% Open';
|
|
||||||
]]]
|
|
||||||
|
|||||||
@@ -1,19 +1,18 @@
|
|||||||
script:
|
script:
|
||||||
open_living_room_cover:
|
open_living_room_cover:
|
||||||
sequence:
|
sequence:
|
||||||
- service: cover.set_cover_position
|
- service: cover.open_cover
|
||||||
entity_id: cover.living_room
|
entity_id: cover.living_room
|
||||||
data:
|
|
||||||
position: "{{ position | default(80) }}"
|
|
||||||
|
|
||||||
toggle_living_room_cover:
|
toggle_living_room_cover:
|
||||||
sequence:
|
sequence:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions: "{{ is_state_attr('cover.living_room', 'current_position', 0) }}"
|
- conditions: "{{ is_state('cover.living_room', 'closed') }}"
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.open_living_room_cover
|
- service: cover.open_cover
|
||||||
|
entity_id: cover.living_room
|
||||||
- conditions: >-
|
- conditions: >-
|
||||||
{{ state_attr('cover.living_room', 'current_position') >= 80 }}
|
{{ is_state('cover.living_room', 'open') }}
|
||||||
sequence:
|
sequence:
|
||||||
- service: cover.close_cover
|
- service: cover.close_cover
|
||||||
entity_id: cover.living_room
|
entity_id: cover.living_room
|
||||||
|
|||||||
@@ -41,7 +41,8 @@ automation:
|
|||||||
- media_player.nvidia_shield
|
- media_player.nvidia_shield
|
||||||
|
|
||||||
button_3_double:
|
button_3_double:
|
||||||
- service: script.sonos_join_tv
|
- service: cover.close_cover
|
||||||
|
entity_id: cover.living_room
|
||||||
|
|
||||||
button_3_triple:
|
button_3_triple:
|
||||||
- service: script.sonos_join_bedroom
|
- service: script.sonos_join_bedroom
|
||||||
@@ -57,9 +58,8 @@ automation:
|
|||||||
- media_player.nvidia_shield
|
- media_player.nvidia_shield
|
||||||
|
|
||||||
button_4_double:
|
button_4_double:
|
||||||
- service: script.music_play
|
- service: cover.open_cover
|
||||||
data:
|
entity_id: cover.living_room
|
||||||
playlist: 'Starred'
|
|
||||||
|
|
||||||
button_4_triple:
|
button_4_triple:
|
||||||
- service: script.music_play
|
- service: script.music_play
|
||||||
|
|||||||
@@ -63,4 +63,3 @@ vacuum_password: pass
|
|||||||
github_access_token: Basic token
|
github_access_token: Basic token
|
||||||
|
|
||||||
air_visual_key: key
|
air_visual_key: key
|
||||||
waqi_key: key
|
|
||||||
|
|||||||
Reference in New Issue
Block a user