mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 18:28:43 +00:00
Use is_state_attr
This commit is contained in:
@@ -9,11 +9,10 @@ script:
|
||||
toggle_living_room_cover:
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions: >
|
||||
{{ state_attr('cover.living_room', 'current_position') == 0 }}
|
||||
- conditions: "{{ is_state_attr('cover.living_room', 'current_position', 0) }}"
|
||||
sequence:
|
||||
- service: script.open_living_room_cover
|
||||
- conditions: >
|
||||
- conditions: >-
|
||||
{{ state_attr('cover.living_room', 'current_position') >= 80 }}
|
||||
sequence:
|
||||
- service: cover.close_cover
|
||||
|
||||
Reference in New Issue
Block a user