it won’t work, this device won’t response any command, only valid command would be
{"method":"miIO.info","params":[],"id":1} +3ms
thing:miio:213003020 -> (4) {"method":"miIO.info","params":[],"id":101}
<- Message: `{"partner_id":"","id":201,"code":0,"message":"ok","result":{"hw_ver":"Linux","fw_ver":"3.4.4_0087","ap":{"ssid":"xxxxxxx","bssid":"xx:xx:xx:xx:xx:xx"},"netif":{"localIp":"192.168.0.1","mask":"255.255.255.0","gw":"192.168.0.2"},"model":"cgllc.airmonitor.b1","mac":"xx:xx:xx:xx:xx:xx","token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","life":675932}}` +18ms
{"method":"get_air_data","params":[],"id":202}
<- Message: `{"result":{"co2e":998,"humidity":36.200000762939453,"pm25":53.599998474121094,"temperature":27.5,"temperature_unit":"c","tvoc":3.0665998458862305,"tvoc_unit":"mg_m3"},"id":202}` +643ms
INFO Got result:
{
"co2e": 998,
"humidity": 36.20000076293945,
"pm25": 53.599998474121094,
"temperature": 27.5,
"temperature_unit": "c",
"tvoc": 3.0665998458862305,
"tvoc_unit": "mg_m3"
}
device won’t response any other command at all, there is 2 reason, 1, miio stop update before this device release, 2, this device is new type devices and thrid-party, they may limit the reponse, command “get_air_data” is from someone who capture packet from ios to device
miio protocol call 192.168.0.2 get_prop
INFO Attempting to call info on 192.168.0.2
INFO Device found, making call
ERROR Encountered an error while controlling device
Error was:
Call to device timed out