-
Notifications
You must be signed in to change notification settings - Fork 15
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
json obj data unvalid #14
Comments
This is a known issue with some devices to query the exact status codetheweb/tuyapi#77 But you will be able to get the events associated with the device. I am trying to find some alternatives. Hope the set command is working fine :) |
@AymanFadda Can you please confirm the fimware version of the device ? Got to Tuya app-> choose the device -> edit -> Select the "Check for firmware update at the bottom" |
Hi. The firmware version is 1.4.2 both for main module and MCU module. |
This is a know issue with the tuya library on some devices. More details about the issue can be found at codetheweb/tuyapi#338 Once it is fixed, we can bring the changes here.
Closing the issue as this is not a bug with this library |
I see mispelling of the dps parameter in your code.
|
Thank you Juampe. with both dsp or dps it's not working. As vinodsr said, it must be a problem in the API of Tuya. |
|
Hi, I'm trying to get the power, current and voltage data from a Tuya device. Following your example, the node workds perfectly to switch on/off the Tuya smart plug. When I try to use GET, I receive the error "json obj data unvalid".
I tried in node-red to write:
msg.payload ={
operation : "GET",
dsp: 19
}
return msg;
I tried also:
msg.payload ={
operation : "GET",
schema: true
}
return msg;
But I continue to get the same error with this answer from the device:
{"payload":{"data":{"dps":{"1":null,"2":null,"3":null,"101":null,"102":null,"103":null}},"deviceId":"[my deivce ID]","deviceName":"[My device name]"},"_msgid":"47701b1b.667bb4"}
Would you please help with some GET examples?
Thank you
The text was updated successfully, but these errors were encountered: