diff --git a/includes/scripts.yaml b/includes/scripts.yaml index 152cfa9..0baea3f 100644 --- a/includes/scripts.yaml +++ b/includes/scripts.yaml @@ -447,3 +447,22 @@ watering_zone: - service: script.water_zone data: water_period: "{{ states('input_select.garden_water_time') }}" + + +open_single_cover: + - choose: + - conditions: + - condition: template + value_template: '{{ state_attr("{{ cover_name }}", "current_position") < 100 }}' + sequence: + - service: cover.open + entity_id: '{{ cover.name }}' + +close_single_cover: + - choose: + - conditions: + - condition: template + value_template: '{{ state_attr("{{ cover_name }}", "current_position") > 0 }}' + sequence: + - service: cover.close + entity_id: '{{ cover.name }}'