-
Notifications
You must be signed in to change notification settings - Fork 44
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
Cover not available after localtuya restart #121
Comments
Can you try master branch if it will resolve the issue or not, |
did not worked, its the same |
hey check this, i deleted the device and added it again. Aufzeichnung.2024-01-31.120617.mp4-compressed.mp4With the slider it is working |
Enable the debug for the device after enable invert position then go to settings -> system -> logs search for |
|
So your device doesn't reports the positions values anymore! it only reports 1,4,11 and 5 not sure why however can delete and add the device and make sure that DPID 2 and DPID 3 exists or post device diagnostics again while device is offline.
note: adding DPID 2 and 3 to manual and rest dps may fix this issue tho. |
|
Posting device diagnostics will be more clear ^^ |
Okay, my mistake. Starting over: The roller shutter is completely open. I deleted the device and re-created it as shown in the video earlier. At first glance, it seems to be working. The device indicates that it's open, and I can only close it. However, once it's fully closed, I can't open it again. Only the Stop button can be pressed, then he shows me the down button again but the shutter is already at the endposition. But, if I switch to the slider in Home Assistant, I can control it up or down. What should I do now, what exactly do you need from me, and when? :D Aufzeichnung.2024-01-31.143307.mp4-compressed.mp4 |
This what I did fix on master version not sure if HACS actually installed master correctly however try once more to enable beta version and choose HACS -> Local Tuya -> On top right corner click on the ⋮ and choose redownload and select |
I now definitely have the master branch, as I have checked the last commits. Unfortunately, it still does not work. I have completely removed the device and added it again via auto configuration. The shutter is at the top I can move it down, but when it has reached the end position I can no longer move it up. See screenshot |
Can you repeat the same steps here #121 (comment) If the device still doesn't reports your shutter current position then it probably this what caused the issue. |
I deleted the device restarted homeassistant, added the device again, then activated invert, then activated debug for this device. |
One sideinfo, i came from this integration: These ones are unavailable after i restart localtuya but after some time they are showing up and they work. |
Yes this is what happen to clarify it, your set position and current position doesn't reports there values when localtuya ask for status when you toggle on invert what happen is it will invert your current position value So why the device doesn't reports the positions values not sure to be honest, when you add new device it pulls the DPs using If changing the status detection function will fix the issue I may try do that and you can test it. |
* Some devices doesn't reports all DPS using status function however it may works better using detect available dps function
I made some changes hoping it may fix this, you need to re-download the master version 7d6dc78 |
yeah its working thank you |
I really appreciate it, but there is no need ^^ |
This issue was closed because it was resolved on the release: 3.2.4.1 |
I want to add that my tuya shades also only work when I add, remove, then re-add them to localtuya. Otherwise the cover control shows up as unavailable. Reading through the discussion above, it appears the OP had the same issue of it only working when they re-added the device to localtuya. Edit: Sometimes it works on first try, sometimes on second try, sometimes the shades show unavailable even after trying to add them several times. I am on 3.2.4.1. Edit 2: I discovered that just renaming the "unavailable" control to something else (i.e. *_localtuya) suddenly makes those entities available. Perhaps this workaround helps someone else. |
The problem
Following Cover, does not work after localtuya is restarted. The entity for the cover is unavailable. The other entities like motor direction is working:
If i push the cover switch manualy and the cover opens fully or closing fully then the entity gets available. After every localtuya restart but it is unavailable.
Environment
Steps to reproduce
Reload of localtuya then the cover gets unavailable until i manualy open or close fully the cover or go in the smart life app and open close fully the cover.
DP dump
Provide Home Assistant traceback/logs
Additional information
DeviceID= bf984eb57d92c8bf9dzy7b
The text was updated successfully, but these errors were encountered: