HA integration for Marvin Connected Home (automated windows etc)

We installed motorized windows from Marvin’s Connected Home line recently. There are 3 ways to operate them:

  • physical open/close buttons on the window
  • wire up dry contacts for close/stop/open1/open2/open3
  • use the Marvin app to control/configure the windows through their cloud service

We wired up zigbee smart relays to the dry contacts and that works well (assuming your zigbee network is solid) but it only sends commands; it can’t see what the status of the window is. E.g. you may have opened it but the rain-sensor in the window decided to close it again or if someone manually operates it, you don’t know how far it’s open.

I had my best new friend Claude Code :wink: reverse engineer the protocol the Marvin Android app is using to talk to the Marvin cloud servers to operate a window and create a python library for sending commands and receiving updates as well as a Home Assistant integration on top of it.

python library: GitHub - cb2206/marvin-connected-home: Async Python client for the Marvin Connected Home cloud API (unofficial) — automated windows, skylights and doors · GitHub

HA integration: GitHub - cb2206/ha-marvin-connected-home: Home Assistant integration for Marvin Connected Home automated windows, skylights and doors (unofficial) · GitHub

It’s an early version but operating the window works; if you have wired up the dry contacts, you can also link HA switch entities in the integration so that in case the cloud connection isn’t available, it triggers the dry contact relays to operate the windows.

Marvin Connected Home has features beyond the motorized windows I have, e.g. you can have motorized windows which also have the CLIQ privacy glass. Or the protocol seems to also have support for environmental sensors which my hardware doesn’t seem to have.

If anyone has feedback or has additional Marvin hardware components from Connected Home installed, feel free to reach out to see if we can get those working properly, too.

Disclaimer: I’m not associated with Marvin except for being a customer; I’ve reached out to them to let them know about the integration and asked whether it’s possible to get access to an official protocol spec but haven’t received any response yet.