-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Yooksmart blinds with inverted reporting percentage #971
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #971 +/- ##
==========================================
- Coverage 82.55% 82.54% -0.01%
==========================================
Files 189 190 +1
Lines 4798 4813 +15
==========================================
+ Hits 3961 3973 +12
- Misses 837 840 +3
Continue to review full report at Codecov.
|
Pull Request Test Coverage Report for Build 1054554217
💛 - Coveralls |
These are the motors for Yoolax and Graywinds blinds on Amazon. These are the ZF version. |
This change appears to have completely broken my Yoolax shades (which were correctly reporting the state prior to this change). With this change, they believe they are closed when they are open (and vice-versa) leading to them not accepting commands to move from Home Assistant. I confirmed that my shades return to normal behavior when I delete the quirk added in this PR and re-configure my shades in ZHA. I wonder if this behavior is dependent on the firmware version. My shades are |
Hmm... my firmware is |
Yeah - it certainly seems firmware dependent. Mine were just manufactured (arrived ~1 week ago). I think if we could add firmware version as part of the signature that would solve this problem for sure. @dmulcahey @Adminiuga is that something that could be added? |
Post the signature string from the device (or better log from ZHA reading the basic cluster then paring the device as being added in the quirk signature and not stripped as in this PR) so the devs can looking at it if its gets difference that ZHA can using for selecting the quirk. |
Here's the signature for mine.
|
Mine, unfortunately, has the same signature. Seems they updated the software version without changing anything else. It seems zigpy is getting the firmware version from an OTA update check from the device, then stores it in the HA device registry. Zigpy doesn't store it anywhere itself and does not expose it to quirks. Not sure yet how to connect the two. Probably should open a ticket for this. |
My shade also stopped working correctly after this change was made. I noticed that it was reporting backwards but would set to the correct position if I sent a command (if i told it to open to 70% it would do so, but then would display at 30%). I removed and re-added the shade and now not only is it reporting backwards, it only ever reports 0 or 100 when fully open or closed. Is there an easy way for me to get rid of this quirk in my HA installation so that my shade will go back to working as it used to? |
You can using local quirks that is overriding the quirk that is in HA #693 (comment). Download the quirk and do the change in the local quirk folder. |
The whole yooksmart directory and custom quirk in /zhaquirks didn't exist prior to the August 25th commit, how would I handle removing that file entirely via the custom_zha_quirks directory? |
Copy the quirk file (its ending with You cant deleting quirk in HA with one local quirk only overriding the installed ones so do one local quirk without the changes that is braking your device. |
Line 82
is making the change so put the original cluster in that line
then the quirk is doing nothing to your device. |
The interesting is witch firmware the device that working OK and not is having then its very likely one firmware bug that is fixed in newer device. |
I'll give that a shot, thanks. As far as firmware, mine is listed as 0x11006780 and was delivered to me on August 9th of this year. I only noticed it started to working strangely maybe 3 or 4 weeks ago. |
@HEAT16 - looks like we have the same firmware version. So it definitely seems like Yooksmart fixed this silently. I haven't had a chance yet to file an issue to work with the devs to use the firmware version as part of the quirk selection process. If you have time to start one, that's probably the next step forward. |
Interestingly enough, I made the suggested change and the the directions are back to working normally BUT I still only ever get 0 or 100 out of the position. Now its at 0 when closed, but immediately jumps to 100 as soon as you start to open it. Additionally, if you send a command for it to open/close to a certain percentage, it just closes all the way and goes to 0. There is definitely still something weird going on. |
@HEAT16 - try running a ZHA reconfigure on the device. That's what I had to do to get the position sorted out after swapping out the quirk. |
@rohankapoorcom I tried this and the position reporting is still all messed up. What exactly did you put in your custom quirks folder to override the default? |
Nothing, I don't use a custom quirks folder. Instead, I deleted the entire quirk folder from the I'm running a Home Assistant venv environment (directions will likely be different if you run supervised or Home Assistant OS) located at I then ran a reconfigure and my shade started operating normally again. |
For some reason, they accept a standard percentage for commanding the blinds, but invert the reported percentage.