Window Blind Automation Based on Window State

Hi everyone, I’ve been working on automating my window blinds based on the state of my windows, and I thought I’d share my setup and experiences. This has been a bit of a puzzle, but I’m making progress!

Setup:
I have motorized window blinds (HmIP-BROLL) and a window contact sensor (HmIP-SWDO). The goal is to have the blinds adjust automatically depending on whether the window is open or closed.

Desired Behavior:

  1. When the window is closed, the blinds should open fully (100%).
  2. When the window is open, the blinds should only open partially (80%).
  3. If the window is opened while the blinds are closed, they should open to 80%.
  4. If the window is closed while the blinds are open, they should close fully.

Current Rules:

  • Rule 1: If the window is open and the blinds are at 100%, set them to 80%.
  • Rule 2: If the window is closed and the blinds are at 80%, set them to 100%.

Challenges Encountered:
I noticed that when the window is already open and the blinds are closing, they sometimes don’t adjust to 80% as expected. Instead, they remain closed at 100%. It seems like the system isn’t continuously checking the window state after the initial trigger. To resolve this, I had to manually close and reopen the window to get the blinds to adjust properly.

Solution Attempt:
I tried swapping the trigger and condition in the rules, but that didn’t work at all. It looks like the logic isn’t quite capturing the state changes dynamically. I’m wondering if there’s a better way to structure these rules to ensure continuous monitoring of the window state.

Request for Feedback:
Has anyone else encountered similar issues with automation rules? I’d love to hear if there’s a more reliable way to achieve this behavior. Maybe there’s a different rule structure or an additional condition I haven’t considered yet.

Thanks in advance for any suggestions or insights!