Checking window covers postion in group atomation

Please format your code using the </> button. There could be errors lurking in there that we cannot see until properly formatted. See point 11 here:

If you can both read and write the position for each cover, then yes, you can do what you want with automations. You need to describe exactly what you’re trying to achieve, though.

Are you wanting to give a “group command” but have that only work on covers that are already in the “group position”, not manually altered? If so, how and when do the manually-altered covers re-synchronise with the group?