Open ptbsare opened 3 years ago
xiaomi_miio_raw.sensor_raw_command also works.
@rytilahti May I ask you about your support here? My python skills are pretty limited. Could you provide an example how to convert a string "[1,2,3]"
to a list of integers?
Hey @syssi, check out ast.literal_eval()
:-):
>>> import ast
>>> ast.literal_eval("[1,2,3]")
[1, 2, 3]
I have the same issue with xiaomi.aircondition.ma1. I can't not set
"set_energysave" with params [1]
to enable Eco mode
The following command line works:
But when I set the following in the config:
From the log I can see that it sends the following instead:
What I want is sending the following:
What should I do?
I tried the config:
It sends the following parameters:
Which is also incorrect. THANKS.