Closed gomble closed 5 months ago
Can you try master branch if it will resolve the issue or not, Go to HACS -> Local Tuya -> click on the three dot at the top right corner -> Redownload -> select master version.
Can you try master branch if it will resolve the issue or not, Go to HACS -> Local Tuya -> click on the three dot at the top right corner -> Redownload -> select master version.
did not worked, its the same
hey check this, i deleted the device and added it again. First i can control the cover but if it reachs the endposition i cant control it.
https://github.com/xZetsubou/hass-localtuya/assets/6769445/751759af-77fd-44f4-92b1-bf0a849ae441
With the slider it is working
One more thing, the cover is wrong inverted. So i go into the settings and reconvigured the cover:
If i click invert and finish the setting, the cover gets unavailable. Even if I restart localtuya.
Enable the debug for the device after enable invert position then go to settings -> system -> logs search for bf9...y7b
then copy everything inside open full logs
I might misunderstood something here.
Enable the debug for the device after enable invert position then go to settings -> system -> logs search for
bf9...y7b
then copy everything insideopen full logs
I might misunderstood something here.
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.
2024-01-31 11:29:20.872 DEBUG [bf9...y7b] Got status update
2024-01-31 11:29:20.874 DEBUG Deciphered data = '{"dps":{"1":"stop","4":"morning","11":30540,"5":false},"t":1706696960}'
note: adding DPID 2 and 3 to manual and rest dps may fix this issue tho.
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.
2024-01-31 11:29:20.872 DEBUG [bf9...y7b] Got status update 2024-01-31 11:29:20.874 DEBUG Deciphered data = '{"dps":{"1":"stop","4":"morning","11":30540,"5":false},"t":1706696960}'
note: adding DPID 2 and 3 to manual and rest dps may fix this issue tho.
both are added:
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 I uploaded now a homeassistant.log after i recreated the device and enabled debugging immeaditly. And a device log. homeassistant.log localtuya-5230f817d127b201f97e3c27098e647e-Terasse-45e75206ef810b25e1456620a3a55cb8.json.txt
https://github.com/xZetsubou/hass-localtuya/assets/6769445/6da1e4df-e4ec-47c1-8068-f2a3b2cb6a6c
once it's fully closed, I can't open it again. Only the Stop button can be pressed
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 3.2.4.1b1
you have to choose it manually HACS will be bugged if it the first time enabling the BETA Version say it chose it for you.
HACS -> Local Tuya -> On top right corner click on the ⋮ and choose redownload and select 3.2.4.1b1
once it's fully closed, I can't open it again. Only the Stop button can be pressed
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
3.2.4.1b1
you have to choose it manually HACS will be bugged if it the first time enabling the BETA Version say it chose it for you.HACS -> Local Tuya -> On top right corner click on the ⋮ and choose redownload and select
3.2.4.1b1
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
if i slide this slider down then the shutter opens again
but if i switch to the arrows i can only click stop
Can you repeat the same steps here https://github.com/xZetsubou/hass-localtuya/issues/121#issuecomment-1919059596 If the device still doesn't reports your shutter current position then it probably this what caused the issue.
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. The entity got unavailable after activating invert. Here are the logs: 2024-02-01 ha.log
One sideinfo, i came from this integration:
https://github.com/rospogrigio/localtuya
On this integration it worked.
I have this shutter 5 times. One which i am experimenting now the other 4 i did not changed the configuration, see this one:
These ones are unavailable after i restart localtuya but after some time they are showing up and they work. i can also force it by physically going to the wall switch and pressing up or down, then the entity is available again and i can operate the shutter
Yes this is what happen to clarify it, your set position and current position doesn't reports there values when localtuya ask for status
from your logs.
Deciphered data = '{"dps":{"1":"stop","4":"morning","5":false,"11":30540},"t":1706827071}'
when you toggle on invert what happen is it will invert your current position value 100 - current_position
but because current position didn't reports in status data it raise an error because it can no longer do the math as current_position is missing.
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 detect_available_dps
function but after adding them it will pull dps data using status
function.
If changing the status detection function will fix the issue I may try do that and you can test it.
I made some changes hoping it may fix this, you need to re-download the master version 7d6dc788124f340a126e4d71996a6da8059394ec
I made some changes hoping it may fix this, you need to re-download the master version 7d6dc78
yeah its working thank you How can i send you some tip?
I really appreciate it, but there is no need ^^ Glad it works for you now.
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