-
Notifications
You must be signed in to change notification settings - Fork 526
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
loratap_garage_door incorrect state reporting #2099
Comments
The DPs reported by this device are very limited, so the integration needs to basically guess at the actual state. The guesses are as follows;
There is too much inconsistency between different Tuya cover devices for me to start making code changes to let your device work perfectly, as it will adversely affect many other devices. To fix 1, it may be possible to avoid looking at command (DP1) completely when determining state, but that will mean the closing and opening states will never show for this device, and it will show closed when opening until the device indicates that it is opening, and the behaviour in 2 of immediately showing closed will remain. |
I address this issue in my discussion: #1419
One issue that can result from that state table is if the device is closing (but this is prevented by one of those reflective sensors or if it closes on something and stops), the cover can get stuck in the closing state. In this state, neither the open nor close controls work and you need to manually open/ close it on the device. Tuya itself attempts to address this issue by implementing a "time of flight" configuration. As usual, their documentation of this is completely shoddy (and this is probably why it isn't discussed more). However, it works as follows:
Note that:
I've read the documentation and from what I understand implementing something like this would require a significant backend update to how tuya-local works. |
Thank you both! |
Only take control dp into account when we have enough other info to determine that the curtain is moving between states. Issue #2099
On reflection, the use of the command dp to try to distinguish opening and closing is unreliable, and it was a mistake to give in to previous users demands to support opening and closing states on devices where it cannot be reliably determined. I have modified |
The outcome should be that when your garage door is fully closed, it will show closed, other times it will show opened, since that is the only information your door is giving. |
Garage door, QS01 curtain, simple blind cannot reliably determine opening and closing states, so update the tests for this. Issue #2099
Just updated it and it's behaving exactly as expected. |
Only take control dp into account when we have enough other info to determine that the curtain is moving between states. Issue make-all#2099
Garage door, QS01 curtain, simple blind cannot reliably determine opening and closing states, so update the tests for this. Issue make-all#2099
Thank you for this awesome integration!
I'm using loratap_garage_door and am getting consistent, but incorrect state reporting.
Commands work perfectly (I believe this is dp 1).
The opener has a contact sensor for the fully closed state (I believe this is dp 101).
cover.py
, but couldn't fully follow what was going on with all the abstractions.Diagnostics:
The text was updated successfully, but these errors were encountered: