See more at the gallery or movies
Did I mention I race rally cars? Red Rocket Rally

Charger - Flash - Rally

Saturday, August 13, 2022
HomeKit Drape and Shade Control
by brian @ 22:18:02 - [perma-link]

Today i got the right gendered RS-232 connectors to hook up an ESP8266 to my motorized drape controllers. Now my drapes and a few more window coverings are controlled through HomeKit. It will look better with some sort of case, but it seems to be working well.

I copied one of the examples for controlling a Switch, and changed it to a WindowCovering, with more HomeKit Characteristics. That worked in one room, where all of the blinds are connected on the same circuit, and not individually controllable.
My bedroom has drapes on two walls and a window shade, all on separate circuits. For that i needed to use a bridge and multiple accessories. I hacked together a hard coded version, rather than trying to make one that scales to the number of devices available. Now that I have both of them working, that’s probably how it will stay. It was frustrating trying to get it to work with virtually no debugging info available.
I think it finally worked after I added a few more entries to each accessory information section. Or maybe having different names for the ummm…. Info and service sections? I don’t know. The devices would appear and disappear. Once i added manufacturer and model, they stopped disappearing.

 
copyright © 2002-2022, brokenvaporware.com

XML

.