Hi all,
i couldn’t find answer my question or couldn’t address it correctly.
I have a number of window covers automated with Shelly 2.5 - connected to HA.
All works fine, i created group of all covers to automate them i.e to close after sunset etc.
Problem is, sometimes, someone close or half close covers before sunset and when automation is being trigerred (i.e. to set covers to 30% after sunset) these already closed covers are moving to 30%. My goal is to keep them in the position as it is. Same thing applies to morning automation, when cover is already full open but automation move it to 50% after sunrise. The question is, can it be somehow validated by automation? I tried template, but i guess tempalte ‘state_attr’ does not apply to groups in this case (it make sense) and doesn’t care about one or two covers are already closed/open.
Example of one of my cover automation:
trigger:
- platform: sun
event: sunset
condition:
condition: template
value_template: "{{ state_attr('cover.rolety', 'current_position') > 75 }}"
action:
- service: cover.set_cover_position
target:
entity_id: cover.rolety
data:
position: 75