I have a Velux window integrated via Somfy which I can already openend/close and set the outer blinds as I wish. This works all perfect.
However, these windows don’t like blind movement if the windows are open. You can open/close the windows at any blind position but you should not move the blind if the window is open.
To keep this save I could deactivate the blinds when the window is open. But this would also stop some automations on these windows working if they are open. So my idea is to create a new, virtual blind entitiy which always automatically closes the window first if the blind position should be changed. I would then hide the “original” blinds and everything should work. If I add the virtual blind entities into automations, they also will continue working: First close the window, then open/close the blind.
Unfortunatley I have NO clue how to do it. Could you help me to get some idea here?
You can create a template cover for the blinds. For the open and close sequences you can add as many services as you like (to close the windows first for example).
open_cover:
- service: script.close_window
- delay: 6 # or however long it takes to close the window
- service: script.open_blind
close_cover:
- service: script.close_window
- delay: 6 # or however long it takes to close the window
- service: script.close_blind
You could even use a wait_template instead of a delay, so you are not waiting longer than necessary if the windows are already closed or oly partly open.