Closed brunchboy closed 2 years ago
Good news! By looking at the light code, and messing around a bit more with test.py
I was able to fetch the variables and commands for one of my blinds, and I just succeeded in moving it to different positions! So this is looking extremely promising. I’ll try to put together a blind.py
based on light.py
and can explore that linter and code formatter if you would be interested in a PR for it. I haven’t coded in Python before, but it looks pretty readable, especially with such close examples to base my own code on.
First off, let me say thank you so much for creating this library! It is the first thing that has given me hope that I will be able to get the level of programmatic control I’d like to have over the automated blind system that was installed in the home I bought.
I can also report that the code seems to work with OS 2.0 (my Director is reporting version 2.10.1.544795-res). I am going to try to get it updated to OS 3.0 when I get more blinds installed, but the dealer is so overworked right now it has been months and I haven’t even been able to get a bid for that finalized!
By tweaking
test.py
I was able to download all the item information intoallitems.txt
, and see the blinds present there. I will paste an example blind item below. Is there any way I can help get these devices supported? They seem to have one parameter, which is the percentage at which they are open, and that can be read or set between 0% and 100%.I will try to dig a bit deeper into how the code and protocol are working, and see if I can figure anything out myself, but as this is all completely new to me, I’m hoping someone who already understands it can help steer me in the right direction.
Here’s a sample blind item, one of my patio black-out blinds: