Open JasperHorn opened 3 years ago
Thanks for the feedback and detailed investigation. Can you tell me what version of tinytuya you are using?
python -m tinytuya version
I added additional logic starting in tinytuya 1.2.x that tries to auto-detect the device22 condition.
The data you are getting looks good. That is the raw JSON output from the device that TinyTuya polls. TuyaPower simply uses this to display the values in a different format. As you figured out, DPS 19 and 20 return integer values with the least significant value being a floating point (you must divide by 10).
My plug can't quite be read by tuyapower. I think I have the info necessary for my purpose, but I thought I would share what I have anyway.
When running
tuyapower.devicePrint()
, I get this output: ERROR: Incomplete responseRunning
tuyapower.deviceRaw()
return no further insight: it returnsNone
.However, based on what I found in #15 I tried the following script:
Now, the response contains all the required info, but formatted in a rather different way:
(newlines and comments added by me)