-
Notifications
You must be signed in to change notification settings - Fork 202
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
TH sensors: json obj data unvalid #589
Comments
You may want to try the https://github.com/jasonacox/tinytuya/blob/master/examples/monitor.py script. Also, you can specify device22 on initialization: a = tinytuya.OutletDevice('here_is_my_key', '192.168.x.x', 'secret_key_here', 'device22', version=3.4)
data = a.status()
print(data) You could also set up a constant ping to the device once it comes online to keep it awake. Note: Battery powered devices are not compatible with local access. They are designed to send their data to the cloud and go to sleep. If you get a local access to work, you are likely going to drain the battery fairly quickly. But good luck on your reserach! |
Hi, ok thanks for your pointer. What I had in mind actually was detecting the UDP broadcast and query the dps just after, (there is time to do it if the device doesn't have access to the tuya server.) Unfortunately that query packet isn't answered by the device, maybe the query is malformed or the BK7231N firmware has been programmed not to answer.. |
I suspect the UDP broadcast it sent when it wakes up to send an update to the cloud. But that's a clever approach. Let us know if you figure it out! |
These things are cheap enough I went ahead and picked up a couple myself, they should be here later next week. Since they are responding with an 'unvalid' error they should be online long enough to poll them. Hopefully I can figure out what sort of magic sequence they're expecting. |
Hi,
I'm trying to get temp, humidity out of a ZY-TH02 sensor locally, It's correctly configured with the smart app, I've got the localkey,
but I'm not able to communicate with the sensor:
At the first round it get "json obj data unvalid" and switch to device22:
The next rounds it keeps timeouting waiting for replies:
Also it seems like that kind of device have been successfully used with LocalTuya here.
Do I miss anything here? Does somebody got any success with those devices?
Best Regards,
The text was updated successfully, but these errors were encountered: