-
Notifications
You must be signed in to change notification settings - Fork 567
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
Connection to device succeeded but no datapoints found, please try again. #1044
Comments
I have the same issue. it's recent because my older local tuya setup (with the most recent version) is supporting a light that I can't get loaded into a new instance of local tuya. |
Same issue here, adding devices in a clean install
|
same error Logger: custom_components.localtuya.pytuya [202...4dd] Failed to get status: During handling of the above exception, another exception occurred: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): |
please fix this |
Amendment: Original: |
How do you get that info and where to configure it?. I'm sorry I'm newby in this things |
I managed to find the original instructions to get these into local tuya: https://community.home-assistant.io/t/tuya-local/237963/116 This contains the DPS information you need. Go into local tuya, add a new device, fill in the name, and local key. In the second to last field, in manual DPS, enter a 1. Click submit and wait. When the box pops up, change it to light. Now you have to fill in the DPS values. If you follow the DPS schema from the hyperlink above, the lights will work. I just did this for two separate lights and I have them in now. |
@SergeantPup Thanks bro, but my device is a switch like this one I'll keep trying combinations |
Then this should be even easier. Put in a manual dps of 1, submit, wait, select the platform as switch, make the ID 1, then fill in the rest. Do you need the tuya cross walk for DPSs? I found it in my searches yesterday and its how I found the settings for the lights |
I think that device isn't compatible, I set the DPS as ID 1, and select switch but localtuya doesn't bring back the correct DPS state (I have all of them), I mean just show me "-1" value instead "0, 1, 2" as relay status and other values. The reason I think is not compatible is because the DPS names in my device doesn't match on any devices provided by local tuya |
I ran into that a few times too. I think it has to do with removing the device and trying to readd it without a restart. I got that on both of my lights that I got working last night but every time I did a restart, I saw the actual DPS settings in local tuya and got them saved and working. |
@SergeantPup when you say restart, do you mean restart all the home assistant instance? |
Yes because if you just try to reload local tuya, it will tell you you need a restart to finish the application reload process. After I restarted, when I added the lights, it wash showing me the correct corresponding dps values for the devices. |
Thanks bro @SergeantPup I'll try your advice |
So to add the device do I have to delete it, reboot and try to add it again? |
That's mine too, I've couldn't find a solution yet. I'm searching for it |
I really don't know how to help guys, I'm sorry... Maybe this device is using a newer protocol like 3.4 instead of 3.3? It's hard to debug without owning the device. Did you try the tuyadebug script you find in the tools folder? |
Can you please give a step-by-step guide? Or a similar instruction. I've just started with tuya and have little expertise with it |
is hard make local tuya for 3.4 protocol? @rospogrigio |
Why the hell was this DP introduced. Everthing was ok until this.. Some devices can be added others no. Then the local tuya integration becomes unavailable. When I restart HA, the integration comes back but some devices are still in zombie mode... :( |
I have found the problem for my devices; in practice, once installed it asks me to update it, if I don't do it it works otherwise there is no way to make it go! moreover I add it without adding any number. |
My Error Log -
|
Is there something we as users can do to help solve this issue? |
Hi all - if it's related to #956, can you try the fixes in PR #1022 to see if that changes anything? In theory the changes introduced in #956 shouldn't impact the default detect_available_dps routine. What the change added was a retry with a RESET in between if no DPS were detected. There seem to be a few different issues raised in this thread, so hard to know if they're all related. If i focus on just the folks who are having the error @milandzuris , @iosoft , @azsak79 , @kevvar - Do you find that these devices work fine on V4.0 of localtuya? |
Hey Same issue here with LSC Party Stringlight RGBIC+WW(15 Bulbs) "Connection to device succeeded but no datapoints found, please try again. Create a new issue and include debug logs if problem persists." what can i do ? |
Hey guys. After I spent many hours to solve this problem a few days ago, I found that in my case it was quite simple: The localkey attribute of just one of my Tuya devices is VARIABLE. Every time the power goes out the key changes and I need to discover it again and update the device in the LocalTuya extension. It was allowed to put the previous localkey, there was no connection failure, it showed this message "Connection to device succeeded but no datapoints found, please try again" but in fact the value of the localkey was already different. I hope this can help someone. |
Hi All, I'm having the weird issue that 1 of my in wall mini switches stopped working. All other 3 don't have any issues. I can control the switch via the SmartLife app. I tried:
Any ideas? |
Check the versions of firmware on your working & non-working devices. I found when I set up a 2nd Home Assistant using LocalTuya, that when I tried to add my SmartPlugs to the 2nd LocalTuya, I kept getting "no datapoints found" and so couldn't add it. If I 'restart' the 1st HomeAssistant, then while it's starting up, I can then add my SmartPlugs to the 2nd Home Assistant LocalTuya integration. However, on SmartPlugs with older firmware, they couldn't be functional in BOTH LocalTuya's - one is greyed-out & one works. Restart the HomeAssistant with the working SmartPlugs and suddenly the greyed-out SmartPlugs in the other HomeAssistant spring to life. But this only happens with SmartPlugs with older non-upgradable firmware. Try using the 'official' Tuya integration rather than LocalTuya. |
|
I get that issue when blocking the device from the internet and trying to keep it only local and restarting it, is there no way to restart devices without internet connection when using localtuya? |
Hi @Crapy - No in most instances you shouldn't need to have your devices connected to the internet to have them work. Often you need to specify the DPIDs for your device in "DPIDs to send in RESET command" parameter - this often helps tuya devices 'wake up'. But for some of my devices I have found a few additional steps necessary to allow them to work offline:
The trick to telling whether a device can work offline/not connected to the internet, is by making it offline and then seeing if the Tuya app can connect/control it normally. I've got 1 device (a fan) that doesn't respond to the above technique, but even the Tuya app can't control it when offline. |
Closing out of the Tuya app fixed this error for me. My light was not allowing 2 active connections at a time. |
Chiming in with my 10cents. Had a light that stopped responding to HA via LocalTuya. Removed, readding would fail. Novestella 1300Lumen RGB Lights. I haven't found ANY DPID info on these... I finally got it added by (make sure it's removed from HA first) restart HA as restarting/reloading LocalTuya App doesn't resolve it, then add and it went through without errors. I checked and confirmed through the Tuya app, the light in question and others are on the same version, and I can control it through Google and Tuya before I removed it from HA. |
You won´t believe my solution. |
Lucky you :)
SummaryDuring the last half year I read through your responses and tried some you wrote. ConclusionSo unfortunately this is the case for me. If it is broken, check local key on Tuya IoT dev platform again and update it. I hope there will be a solution for this in the future because I cannot use UPS for each controllers... How to for new comers
Additionally you can also get your device DP values to help to set the values in HA: |
Hi there! I just stumbled across this issue and at least in my case it seemed to be a race condition / timing issue. I had a bunch of different socket switches from different brands, all with tuya cloud integration. Two of them initially threw that |
If someone need Data Points for Setup here: https://github.com/DzurisHome/Tuya-Data-Points |
Likewise, I have this issue with
|
I've noticed one more thing, which I believe is is the crux of the problem: these lights are on |
Update: I found a solution that worked for me. |
I'm a newbie on HA and Tuya devices but I got the same issue here. `2024-01-01 23:20:19.873 ERROR (MainThread) [custom_components.localtuya.core.pytuya] [bf9...vvt] Failed to get status: The above exception was the direct cause of the following exception: Traceback (most recent call last): My device I tried to connect is a RGB light bulb. |
You can also determine your data points yourself and then add the device manually: |
THIS! this was the fix for me! RESTART YOUR HA INSTANCE if you have recently removed a local tuya device and then tried to add it again |
Thanks for the tip. |
Hi everyone, I've the same message when I try to connect my LVWIT bulbs when I can connect without issue others devices (smart plugs, cats smart food feeders...). When I've a look on the parameters returned by Tuya IoT Platform to find the local key, I can see that for the accepded devices, the local key is always alpanumerical when the rejected devices have a alphanumerical + special characteres keys. Device working without issue (I've anonymized some parameters with "X"): My LVWIT bulb I cannot register: |
I'm having the same issue with 1 of 4 of my Treatlife Fan control switches. I have to use the local tuya to control in home assistant as the standard tuya integration does not allow control of both the fan speed and the light / dimmer in the same device. It was working and then for some reason got the ? on the icon in my dashboard and the fix in the past was to remove the device and add it back in. In doing so, i now get this error: Connection to device succeeded but no datapoints found, please try again. Create a new issue and include debug logs if problem persists. For some reason it's trying to run on 3.4 version. I'm not sure why the integration asks me what version of the protocol to use as anytime i try to change it, it goes back to 3.4. The device works fine in the SmartLife app but I want it to work in home assistant like it used to along with the other 3 that i have setup and working. This post is from 2022 and it's not 2024 and i'm surprised this is still an issue. |
Here's my experience/what I think is happening... While adding a new device I had to disable my firewall rule that blocks my VLAN with all of my light switches from accessing the internet. It seems that any device that I setup 6 months - 1 year ago all of a sudden stopped working in Home Assistant. I needed to remove them from the Smart Life App, re-add it, and then go through the regular setup steps using the dev cloud (grabbing the new device id, local key, etc.) I think either...
|
Yes #2 actually worked for me. My Cree 60W tuya lights will be in zombie mode (router wan block + adguarghome DNS block), only when is set the DPID in RESET to DPID 27 or DPID 26 (i havent tried others, these worked right away). |
This is absolutely infuriating. I can't control the fan speed and light through the tuya integration and I can't keep this one switch paired with the localtuya integration. I just keeps dropping off randomly and won't pair again. Sometimes it will repair if I go for days without it integrated with home assistant. It stays connected to the smart life app and just keeps working there. When I try to add it to home assistant I keep getting this message:
I then went to iot.tuya.com and ran the Query Properties on the device ID and got the following response:
I know the fan switch is I don't know what |
Life saver! It took me days to find this post. I had two devices, both worked, one morning one dropped off. I restarted, reconfigured, deleted it from the app/cloud, tried what-ever, reinstalled HASS and now I ran tuya-cli wizard to find out that the device's localkey changed. |
For me this message went away with different firmwares. I have 2 sets of 4 sockets; the first set wants 3.1, the other 3.3. |
This fixed it for me. I'd just been trying to add a brand new light so when I saw it could be to do with a newer protocol version than LocalTuya was incapable of supporting I felt this was the reason. And it was. Installed the HACS integration, restarted HA and added the light with no issues. |
Same issue here. I have 4 devices that I was succesfully able to add and use in localTuya last year. They are 4 identical devices, bought at the same time. Same brand, same model. When I try to add them now, only one gets autodetected and works. another gets autodetected, but has the datapoints error. The two others are not autodetected and also get the datapoints error when manually added. They respond to ping, so they're definitely there. I double checked their local keys through the Android Emulator trick, and they're still correct. So not sure what else could be going wrong... I also tried deleting localtuya and starting from scratch: no luck. No idea what else I can try here. EDIT: a 5th device (different brand and model this time) appears to have the exact same issue. So for some reason, only 1 device works? EDIT2: Now this is getting interesting... When I use the example script on the TinyTuya page, I can get data for a broken device, but not for the working device?! When using the scan command of that same tool, I also get a hit for the broken device, but not for the working one. Peculiar... very peculiar... |
The problem
Connection to device succeeded but no datapoints found, please try again. Create a new issue and include debug logs if problem persists.
This error originated from a custom integration.
Logger: custom_components.localtuya.pytuya
Source: custom_components/localtuya/pytuya/init.py:259
Integration: LocalTuya (documentation, issues)
First occurred: 21:58:29 (5 occurrences)
Last logged: 22:02:00
[bf4...igc] Failed to get status:
[bf5...nqh] Failed to get status:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/locks.py", line 390, in acquire
await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
return fut.result()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/localtuya/pytuya/init.py", line 574, in detect_available_dps
data = await self.status()
File "/config/custom_components/localtuya/pytuya/init.py", line 507, in status
status = await self.exchange(STATUS)
File "/config/custom_components/localtuya/pytuya/init.py", line 486, in exchange
msg = await self.dispatcher.wait_for(seqno)
File "/config/custom_components/localtuya/pytuya/init.py", line 259, in wait_for
await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout)
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
Environment
core 9.0.4
tuya newest
The text was updated successfully, but these errors were encountered: