Replies: 1 comment 2 replies
-
I just tested the code you gave (against a simulator) and it's working as expected. As your stacktrace is cut short, I cannot see from where the error you are receiving is coming from. Maybe it is the response of the device that cannot be parsed? You could enable debug logging in your script to verify what is being sent & received:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to turn on the heating mode of a Rice Cooker(chunmi.cooker.wy3).
The cancel action without a parameter works well.
However, If I specify a profile to start cooking,I got the following error:
...
File "/usr/local/lib/python3.8/dist-packages/construct/core.py", line 701, in _parse
return self._decode(obj, context, path)
File "/usr/local/lib/python3.8/dist-packages/miio/protocol.py", line 201, in _decode
raise PayloadDecodeException(
miio.exceptions.PayloadDecodeException: Unable to parse message payload
my code:
...
profile = "0110050000000b24001e0023001900801200000002aa0000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000280a003c000f91416e080000008278736e0
01000756e00690f0c75506e0669100082826e0869100069025004129d"
res=g_cooker.call_action_by(3,1,[profile])
....
The profile value was captured on my iPhone.
{"accessKey":"xxxx","params":{"did":"xxx","siid":3,"in":["0110050000000b24001e0023001900801200000002aa0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000280a003c000f91416e080000008278736e001000756e00690f0c75506e0669100082826e0869100069025004129d"],"aiid":1}}'
How should I specify the profile parameter in call_action?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions