Closed phrak closed 11 months ago
Can you download and post the entry diagnostics it contains everything about devices data. and tell me that devices that didn't works by names.
Notes:
Thank you - Please see attached. Full Diags config_entry-localtuya-d6d1c62282b4cf4e32f66d2628357f28.json.txt
Devices that did not work are:
These are the non-working sub-devices of: bf9e4ec01480c0c2f5bw5g / "name": "IKUU Pro Hub SGW003",
Re: your notes. Thank you, I understand.
Re note 3. Yes, I have tried to add these sub-devices multiple times after 1 sub-device has already been added.
Ok it seems the device named "3x Kitchen Light Switch" the device that being used as "gateway" can you enable the debug for it. Configure -> Reconfigure existed device -> 3x Kitchen Light Switch -> turn on debug for it.
After turning on the debug try controlling these sub-devices that didn't success to add physically and by turning them on / off.
then go to Settings -> System -> Logs, search for localtuya and open full logs, I want to see if these devices reports any states change to gateway.
Thank you for investigating.
I have enabled debugging for the "3x Kitchen Light Switch" (bf200a5d4c611ba1ecmaba) device as requested.
Then I manually (physically with my finger) switched SWITCH 5 of the "5x Backyard Light Switch" (bf6394c88141d025e6astl) device.
The log entry for this action is attached. Start line: 142 End line: 162 Debug 2.txt
What happen if you try to add "5x Backyard Light Switch" into HA does shows "but no datapoints" error?
Can you try to add it? and check if the error shows One more thing just to make sure that no existed device causing the issue, can you delete any sub-device connected to the same gateway as "5x" device then try to re-add it.
The good thing is that the "5x" device reports the changed states. But with the "current entity available logic" it require the device to at least return any status.
It's working now! I don't think I did anything differently, other than manually pressing buttons on the 5x yesterday.
Now today, I only did "Add new device" -> Selected the "5x Backyard Light Switch" device -> Submit. And the device was successfully added as expected! 😃 After that, I removed the 5x device and re-added it again to be sure. This worked fine too.
Then, I did "Add new device" -> Selected the "Entryway Dimmer SSWRM-ZB" device, and ticked "Configure all recognized devices automatically". All 3 sub-devices that had problems earlier were added successfully, and they can all be controlled as expected.
Now, only the "IKUU Pro Hub SGW003" (bf9e4ec01480c0c2f5bw5g) device can not be added, but this is not a problem. This is the Gateway hub that does not contain any DPS's or configuration of it's own, so there is nothing for LocalTuya to do.
@xZetsubou thank you so much for your help here, I love this project!
Please let me know if you would like any additional debug or diagnostic logs to help close any residual concerns.
So the issue got fixed on it own :) ?
So I guess this issue caused due a communication issues between the gateway and sub-devices and probably by toggling on/off the sub-device started to re-communicate with the gateway. While I was testing sub-devices before I noticed that when I power-off the gateway and turn it on later, I my ZigBee motion sensor doesn't return status at all until it triggered by something, I'm guessing you had the same issue not sure tho.
As for gateways unless it has extra features (yours doesn't) it's no uses for localtuya at all, so adding them is useless :) This is an example of my gateway which has some features tho it's still useless.
Actually, now that you mention it, I did do one other thing that could have made a difference. I power-cycled the Zigbee gateway between the time that I first logged the issue and the time that is started working.
Perhaps this reboot forced the gateway and switch to re-establish a good connection.
Thank you again for your help to troubleshoot this issue. Please consider adding a donation link on your home page - I'd love to buy you a beer or coffee as a small thanks!
FWIW - I had this problem - and literally using the devices/or waiting for the case of humidity sensors worked a treat.
Thank you so much for creating this fork! It is exactly what I needed :)
The problem
When attempting to add some (not all) Zigbee devices, some devices report that "Connection to device succeeded but no datapoints could be found".
I have re-downloaded Master branch as at the date & time of this issue.
All Zigbee devices are paired with a Mercator Ikuu Zigbee Pro Hub SGW003 as my Zigbee gateway. This is a Tuya TYGWZ-01 Ethernet Smart Gateway, also rebranded as LIDL, Silvercrest, Pearl.de, Revolt, Elesion and many more.
I can successfully auto-discover and add these Zigbee devices:
But I cannot add these devices:
Please let me know if you would like any additional logs or debug dumps.
Environment
DP dump
Provide Home Assistant traceback/logs
Additional information
I have attached a full dump from Tuya IOT of the devices attached to my gateway. You can cross-reference the product_id values above with the devices in this file. Gateway Connected Zigbee Devices.txt
I also tried adding the 5x switch with Manual DPS's 1-6. I was allowed to add the device. It successfully auto-discovered the Timer DPS's. However, I could not control any of the Switches or Timers. They all showed as "Unavailable". I have included the Diagnostic Data from this time. 5x gang Switch localtuya-d6d1c62282b4cf4e32f66d2628357f28-5x Backyard Light Switch-7a2047838f0e42bb01f0bccd73d568bd.json.txt