Closed mrmaximas closed 3 years ago
Should be straight forward! Will add support for it in the next update!
The device is now supported in version 0.9.15
deep debug is on but no more messages in the log [10/2/2021, 9:41:58 AM] [miot] [Mi Wi-Fi Plug] Poll failed 4 times in a row! Stopping polling and trying to reconnect! Reason: Error: Resp invalid json. [10/2/2021, 9:41:58 AM] [miot] [Mi Wi-Fi Plug] Connected to device: chuangmi.plug.m3 [10/2/2021, 9:41:58 AM] [miot] [Mi Wi-Fi Plug] Setting up device! [10/2/2021, 9:41:58 AM] [miot] [Mi Wi-Fi Plug] Doing device specific setup [10/2/2021, 9:41:58 AM] [miot] [Mi Wi-Fi Plug] Doing initial property fetch [10/2/2021, 9:41:58 AM] [miot] [Mi Wi-Fi Plug] Device setup finished! Device ready, you can now control your device!
Seems like it is not a miot device. You would need to specify your MiCloud credentials in the config.json and set the property forceMiCloud to true and check if it works over MiCloud.
Also you need to start homebridge in debug to see the additional log from deepDebug
plug works w/o micloud, but this error in the log appears, temperature is 0.0 permanently, if i force micloud then works ok, but very slowly (cn servers).
[10/2/2021, 10:26:39 AM] [miot] [Mi Wi-Fi Plug] Poll failed 4 times in a row! Stopping polling and trying to reconnect! Reason: Error: Resp invalid json. [10/2/2021, 10:26:39 AM] [miot] [Mi Wi-Fi Plug] Trying to reconnect... [10/2/2021, 10:26:39 AM] [miot] [Mi Wi-Fi Plug] Device diconnected! [10/2/2021, 10:26:39 AM] [miot] [Mi Wi-Fi Plug] Connected to device: chuangmi.plug.m3 [10/2/2021, 10:26:39 AM] [miot] [Mi Wi-Fi Plug] Setting up device! [10/2/2021, 10:26:39 AM] [miot] [Mi Wi-Fi Plug] Doing device specific setup [10/2/2021, 10:26:39 AM] [miot] [Mi Wi-Fi Plug] Doing initial property fetch [10/2/2021, 10:26:39 AM] [miot] [Mi Wi-Fi Plug] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/2/2021, 10:26:39 AM] [miot] [Mi Wi-Fi Plug] Chunks: [ [ "power", "led", "temperature" ] ] [10/2/2021, 10:26:39 AM] [miot] [Mi Wi-Fi Plug] Device setup finished! Device ready, you can now control your device! [10/2/2021, 10:26:39 AM] [miot] [Mi Wi-Fi Plug] Device connected! [10/2/2021, 10:26:39 AM] [miot] [Mi Wi-Fi Plug] Successfully saved device info! [10/2/2021, 10:26:39 AM] [miot] [Mi Wi-Fi Plug] Error on initial property request! Error: Resp invalid json.
this is info from my dhcp server Active Host Name | | chuangmi-plug-m3_miio235159277
You would need to start homebridge in debug mode and set the deepDebug flag to on, that way quite some more log should appear.
[37m[10/2/2021, 11:45:16 AM] [39mHomebridge v1.3.4 (Homebridge C5EC) is running on port 51231. [37m[10/2/2021, 11:45:17 AM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Connected to device: chuangmi.plug.m3 [37m[10/2/2021, 11:45:17 AM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Setting up device! [37m[10/2/2021, 11:45:17 AM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Fetching device info.[39m [37m[10/2/2021, 11:45:17 AM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Doing device specific setup [37m[10/2/2021, 11:45:17 AM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Doing initial property fetch [37m[10/2/2021, 11:45:17 AM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14[39m [37m[10/2/2021, 11:45:17 AM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Chunks: [[39m [90m [[39m [90m "power",[39m [90m "led",[39m [90m "temperature"[39m [90m ][39m [90m][39m [37m[10/2/2021, 11:45:17 AM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Device setup finished! Device ready, you can now control your device! [37m[10/2/2021, 11:45:17 AM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Device connected![39m [37m[10/2/2021, 11:45:17 AM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Got device info! Device firmware: 1.3.8_0002[39m [37m[10/2/2021, 11:45:17 AM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Full device info: [39m [90m{[39m [90m "life": 40265,[39m [90m "token": "599d44dd5aabxxxxxx",[39m [90m "mac": "44:23:7C:61:0xxx",[39m [90m "fw_ver": "1.3.8_0002",[39m [90m "hw_ver": "ESP8266",[39m [90m "uid": "6226444xxx",[39m [90m "model": "chuangmi.plug.m3",[39m [90m "wifi_fw_ver": "1.5.0-dev(7efd021)",[39m [90m "ap": {[39m [90m "rssi": -69,[39m [90m "ssid": "Uxxxx",[39m [90m "bssid": "50:FF:20xxxx"[39m [90m },[39m [90m "netif": {[39m [90m "localIp": "192.168.xx",[39m [90m "mask": "255.255.255.0",[39m [90m "gw": "192.168.xx"[39m [90m },[39m [90m "mmfree": 2256[39m [90m}[39m [37m[10/2/2021, 11:45:17 AM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Error on initial property request! Error: Resp invalid json.[39m [37m[10/2/2021, 11:45:17 AM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Successfully saved device info![39m [37m[10/2/2021, 11:45:18 AM] [39m[36m[miot][39m [Mi Fresh Air Ventilator C1-80] Connected to device: zhimi.airfresh.ua1 [37m[10/2/2021, 11:45:18 AM] [39m[36m[miot][39m [Mi Fresh Air Ventilator C1-80] Setting up device! [37m[10/2/2021, 11:45:18 AM] [39m[36m[miot][39m [90m[Mi Fresh Air Ventilator C1-80] Fetching device info.[39m [37m[10/2/2021, 11:45:18 AM] [39m[36m[miot][39m [Mi Fresh Air Ventilator C1-80] Doing device specific setup [37m[10/2/2021, 11:45:18 AM] [39m[36m[miot][39m [Mi Fresh Air Ventilator C1-80] Doing initial property fetch [37m[10/2/2021, 11:45:18 AM] [39m[36m[miot][39m [90m[Mi Fresh Air Ventilator C1-80] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14[39m [37m[10/2/2021, 11:45:18 AM] [39m[36m[miot][39m [Mi Fresh Air Ventilator C1-80] Device setup finished! Device ready, you can now control your device! [37m[10/2/2021, 11:45:18 AM] [39m[36m[miot][39m [90m[Mi Fresh Air Ventilator C1-80] Device connected![39m
This is till not the full log which you providing here. Again i need the homebridge debug log with the deepDebug parameter enabled in the config.json to be able to see what is wrong.
ok. i will try to find how to do it. after two days. thks
Here you have a guide on how to start homebridge in debug mode: https://github.com/merdok/homebridge-miot#troubleshooting
i know how to switch to debug mode but i don know hot to find more detailed data then i show
The data is simply in your terminal from which you start homebridge in debug mode
which line should i find?
The same as above but there should be much more log output.
[37m[10/4/2021, 9:49:10 PM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Got device configuration, initializing device with name: Mi Wi-Fi Plug [37m[10/4/2021, 9:49:10 PM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Found cached device information: chuangmi.plug.m3[39m [37m[10/4/2021, 9:49:10 PM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Device model known: chuangmi.plug.m3! Creating device! [37m[10/4/2021, 9:49:10 PM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Creating miot device![39m [37m[10/4/2021, 9:49:10 PM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Device Factory - Creating device instance by model: chuangmi.plug.m3![39m [37m[10/4/2021, 9:49:10 PM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Initializing device properties [37m[10/4/2021, 9:49:10 PM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Device properties: [[39m [90m "power",[39m [90m "led",[39m [90m "temperature"[39m [90m][39m [37m[10/4/2021, 9:49:10 PM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Initializing device actions [37m[10/4/2021, 9:49:10 PM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Successfully created a Outlet device! It is a Xiaomi Chuangmi Plug M3. [37m[10/4/2021, 9:49:10 PM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Initializing accessory! [37m[10/4/2021, 9:49:10 PM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Accessory Factory - Creating Outlet accessory for device Mi Wi-Fi Plug![39m [37m[10/4/2021, 9:49:10 PM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Accessory successfully initialized! [37m[10/4/2021, 9:49:11 PM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Connected to device: chuangmi.plug.m3 [37m[10/4/2021, 9:49:11 PM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Setting up device! [37m[10/4/2021, 9:49:11 PM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Fetching device info.[39m [37m[10/4/2021, 9:49:11 PM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Doing device specific setup [37m[10/4/2021, 9:49:11 PM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Doing initial property fetch [37m[10/4/2021, 9:49:11 PM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14[39m [37m[10/4/2021, 9:49:11 PM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Chunks: [[39m [90m [[39m [90m "power",[39m [90m "led",[39m [90m "temperature"[39m [90m ][39m [90m][39m [37m[10/4/2021, 9:49:11 PM] [39m[36m[miot][39m [Mi Wi-Fi Plug] Device setup finished! Device ready, you can now control your device! [37m[10/4/2021, 9:49:11 PM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Device connected![39m [37m[10/4/2021, 9:49:11 PM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Successfully saved device info![39m [37m[10/4/2021, 9:49:11 PM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Got device info! Device firmware: 1.3.8_0002[39m [37m[10/4/2021, 9:49:11 PM] [39m[36m[miot][39m [90m[Mi Wi-Fi Plug] Full device info: [39m [90m{[39m [90m "life": 249303,[39m [90m "token": "599xxxx",[39m [90m "mac": "44:23:7C:61:08:XX",[39m [90m "fw_ver": "1.3.8_0002",[39m [90m "hw_ver": "ESP8266",[39m [90m "uid": "6226444xxx",[39m [90m "model": "chuangmi.plug.m3",[39m [90m "wifi_fw_ver": "1.5.0-dev(7efd021)",[39m [90m "ap": {[39m [90m "rssi": -70,[39m [90m "ssid": "xxx",[39m [90m "bssid": "50:FF:20:33:xx:xx"[39m [90m },[39m [90m "netif": {[39m [90m "localIp": "192.168.xx",[39m [90m "mask": "255.255.255.0",[39m [90m "gw": "192.168.xx"[39m [90m },[39m [90m "mmfree": 2216[39m [90m}[39m
Sorry, this is still not a debug log. This is the normal information log which you are posting. You need to follow the link which i provided you above and follow the steps there...
Sorry, this is still not a debug log. This is the normal information log which you are posting. You need to follow the link which i provided you above and follow the steps there...
i copied this from homebridge.log file located at /Users/max/.homebridge/homebridge.log
Yes, but this is not a debug log. This is an information log.
what do the messages we need look like? I don't see anything else, debug is on in the plugin and homebridge
You will see quite some more extra messages in your terminal window if you have correctly enabled debug log and deepDebug
in the plugin
You will see quite some more extra messages in your terminal window if you have correctly enabled debug log and
deepDebug
in the plugin
please give me your e-mail, I will send a full log
I do not need a full log, i just need the same log which you posted above but with debug mode enabled in homebridge so i can see the extra information...
That is good that you have it enabled, but now you need to post the debug log here.
[10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Chunks: [ [ "power", "led", "temperature" ] ] [10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Poll failed 4 times in a row! Stopping polling and trying to reconnect! Reason: Error: Resp invalid json. [10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Trying to reconnect... [10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Device diconnected! [10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Connected to device: chuangmi.plug.m3 [10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Setting up device! [10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Doing device specific setup [10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Doing initial property fetch [10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Chunks: [ [ "power", "led", "temperature" ] ] [10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Device setup finished! Device ready, you can now control your device! [10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Device connected! [10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Successfully saved device info! [10/4/2021, 11:00:13 PM] [miot] [Mi Wi-Fi Plug] Error on initial property request! Error: Resp invalid json. [10/4/2021, 11:00:20 PM] [miot] [Mi Fresh Air Ventilator C1-80] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 11:00:20 PM] [miot] [Mi Fresh Air Ventilator C1-80] Chunks: [ [ "power", "fan_level", "heater", "child_lock", "alarm", "led", "device_fault", "filter_used_time", "filter_life_level", "motor_a_speed_rpm", "motor_b_speed_rpm", "temperature" ] ] [10/4/2021, 11:00:20 PM] [miot] [Mi Fresh Air Ventilator C1-80] Error while parsing response from device for property filter_life_level. Response: {"did":"333830665","siid":4,"piid":1,"code":-4004} [10/4/2021, 11:00:20 PM] [miot] [Mi Fresh Air Ventilator C1-80] Device properties updated: [ "power: true", "fan_level: 1", "heater: true", "child_lock: true", "alarm: false", "led: 30", "device_fault: 0", "filter_used_time: 42", "filter_life_level: 0", "motor_a_speed_rpm: 1476", "motor_b_speed_rpm: 1464", "temperature: 19.1" ] [10/4/2021, 11:00:20 PM] [miot] [Mi Wi-Fi Plug] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 11:00:20 PM] [miot] [Mi Wi-Fi Plug] Chunks: [ [ "power", "led", "temperature" ] ] [10/4/2021, 11:00:21 PM] [miot] [Mi Wi-Fi Plug] Poll failed! No response from device! Error: Resp invalid json. [10/4/2021, 11:00:27 PM] [miot] [Mi Fresh Air Ventilator C1-80] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 11:00:27 PM] [miot] [Mi Fresh Air Ventilator C1-80] Chunks: [ [ "power", "fan_level", "heater", "child_lock", "alarm", "led", "device_fault", "filter_used_time", "filter_life_level", "motor_a_speed_rpm", "motor_b_speed_rpm", "temperature" ] ] [10/4/2021, 11:00:28 PM] [miot] [Mi Wi-Fi Plug] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 11:00:28 PM] [miot] [Mi Wi-Fi Plug] Chunks: [ [ "power", "led", "temperature" ] ] [10/4/2021, 11:00:28 PM] [miot] [Mi Fresh Air Ventilator C1-80] Error while parsing response from device for property filter_life_level. Response: {"did":"333830665","siid":4,"piid":1,"code":-4004} [10/4/2021, 11:00:28 PM] [miot] [Mi Fresh Air Ventilator C1-80] Device properties updated: [ "power: true", "fan_level: 1", "heater: true", "child_lock: true", "alarm: false", "led: 30", "device_fault: 0", "filter_used_time: 42", "filter_life_level: 0", "motor_a_speed_rpm: 1476", "motor_b_speed_rpm: 1488", "temperature: 19.1" ] [10/4/2021, 11:00:30 PM] [miot] [Mi Wi-Fi Plug] Poll failed! No response from device! Error: Resp invalid json. [10/4/2021, 11:00:34 PM] [miot] [Mi Fresh Air Ventilator C1-80] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 11:00:34 PM] [miot] [Mi Fresh Air Ventilator C1-80] Chunks: [ [ "power", "fan_level", "heater", "child_lock", "alarm", "led", "device_fault", "filter_used_time", "filter_life_level", "motor_a_speed_rpm", "motor_b_speed_rpm", "temperature" ] ] [10/4/2021, 11:00:35 PM] [miot] [Mi Wi-Fi Plug] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 11:00:35 PM] [miot] [Mi Wi-Fi Plug] Chunks: [ [ "power", "led", "temperature" ] ] [10/4/2021, 11:00:35 PM] [miot] [Mi Fresh Air Ventilator C1-80] Error while parsing response from device for property filter_life_level. Response: {"did":"333830665","siid":4,"piid":1,"code":-4004} [10/4/2021, 11:00:35 PM] [miot] [Mi Fresh Air Ventilator C1-80] Device properties updated: [ "power: true", "fan_level: 1", "heater: true", "child_lock: true", "alarm: false", "led: 30", "device_fault: 0", "filter_used_time: 42", "filter_life_level: 0", "motor_a_speed_rpm: 1488", "motor_b_speed_rpm: 1476", "temperature: 19.1" ] [10/4/2021, 11:00:35 PM] [miot] [Mi Wi-Fi Plug] Poll failed! No response from device! Error: Resp invalid json. [10/4/2021, 11:00:41 PM] [miot] [Mi Fresh Air Ventilator C1-80] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 11:00:41 PM] [miot] [Mi Fresh Air Ventilator C1-80] Chunks: [ [ "power", "fan_level", "heater", "child_lock", "alarm", "led", "device_fault", "filter_used_time", "filter_life_level", "motor_a_speed_rpm", "motor_b_speed_rpm", "temperature" ] ] [10/4/2021, 11:00:42 PM] [miot] [Mi Fresh Air Ventilator C1-80] Error while parsing response from device for property filter_life_level. Response: {"did":"333830665","siid":4,"piid":1,"code":-4004} [10/4/2021, 11:00:42 PM] [miot] [Mi Fresh Air Ventilator C1-80] Device properties updated: [ "power: true", "fan_level: 1", "heater: true", "child_lock: true", "alarm: false", "led: 30", "device_fault: 0", "filter_used_time: 42", "filter_life_level: 0", "motor_a_speed_rpm: 1476", "motor_b_speed_rpm: 1488", "temperature: 19.1" ] [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Chunks: [ [ "power", "led", "temperature" ] ] [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Poll failed 4 times in a row! Stopping polling and trying to reconnect! Reason: Error: Resp invalid json. [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Trying to reconnect... [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Device diconnected! [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Connected to device: chuangmi.plug.m3 [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Setting up device! [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Doing device specific setup [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Doing initial property fetch [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Chunks: [ [ "power", "led", "temperature" ] ] [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Device setup finished! Device ready, you can now control your device! [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Device connected! [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Successfully saved device info! [10/4/2021, 11:00:42 PM] [miot] [Mi Wi-Fi Plug] Error on initial property request! Error: Resp invalid json. [10/4/2021, 11:00:48 PM] [miot] [Mi Fresh Air Ventilator C1-80] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 11:00:48 PM] [miot] [Mi Fresh Air Ventilator C1-80] Chunks: [ [ "power", "fan_level", "heater", "child_lock", "alarm", "led", "device_fault", "filter_used_time", "filter_life_level", "motor_a_speed_rpm", "motor_b_speed_rpm", "temperature" ] ] [10/4/2021, 11:00:49 PM] [miot] [Mi Fresh Air Ventilator C1-80] Error while parsing response from device for property filter_life_level. Response: {"did":"333830665","siid":4,"piid":1,"code":-4004} [10/4/2021, 11:00:49 PM] [miot] [Mi Fresh Air Ventilator C1-80] Device properties updated: [ "power: true", "fan_level: 1", "heater: true", "child_lock: true", "alarm: false", "led: 30", "device_fault: 0", "filter_used_time: 42", "filter_life_level: 0", "motor_a_speed_rpm: 1488", "motor_b_speed_rpm: 1476", "temperature: 19.1" ] [10/4/2021, 11:00:49 PM] [miot] [Mi Wi-Fi Plug] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 11:00:49 PM] [miot] [Mi Wi-Fi Plug] Chunks: [ [ "power", "led", "temperature" ] ] [10/4/2021, 11:00:49 PM] [miot] [Mi Wi-Fi Plug] Poll failed! No response from device! Error: Resp invalid json.
This is finally a debug log!
So as i already mentioned, the device is most probably not a miot device. You would need to specify your MiCloud credentials in the config.json and set the property forceMiCloud
to true and check if it works over MiCloud. If that is the case then you can let me know and i will mark the device as MiCloud required.
[10/4/2021, 11:24:57 PM] [miot] [Mi Wi-Fi Plug] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 11:24:57 PM] [miot] [Mi Wi-Fi Plug] Chunks: [ [ "power", "led", "temperature" ] ] [10/4/2021, 11:24:57 PM] [miot] [Mi Wi-Fi Plug] MiCloud request https://api.io.mi.com/app/miotspec/prop/get - {"_nonce":"XXXXXXXXX","data":"{\"params\":[{\"did\":\"235159277\",\"siid\":2,\"piid\":1},{\"did\":\"235159277\",\"siid\":3,\"piid\":1},{\"did\":\"235159277\",\"siid\":2,\"piid\":2}]}","signature":"xxxxxSSx77ZJOg="}
42 degree temp via cloud instead of 0 via plugin
Does it work now?
Cloud works very slowly, 2-3 sec after command (( But this outlet worked through the plugin before! Worked without the cloud. Only it showed the wrong temperature. it was working before I opened this ticket ))
Sorry, i am right now confused. The temperature does not work without MiCloud? In that case we have two options here:
Thanks. A very long way to China telecom)) through the great Chinese firewall)
Ok, then i will remove the temperature property from the outlet
I think that the temperature inside the outlet is an unnecessary, even the Mi Home native application does not show it
Ok, makes sense! I will remove it in the next update!
This is finally a debug log!
it worked when I set debug level 4 in homebridge setting
Oh, ok. I usually start homebridge in debug mode straight from the terminal and not with the ui.
[9/22/2021, 9:17:12 AM] [miot] [Miot device] Got device configuration, initializing device with name: Miot device [9/22/2021, 9:17:12 AM] [miot] [Miot device] Device model known: chuangmi.plug.m3! Creating device! [9/22/2021, 9:17:12 AM] [miot] [Miot device] Initializing device properties [9/22/2021, 9:17:12 AM] [miot] [Miot device] Initializing device actions [9/22/2021, 9:17:12 AM] [miot] [Miot device] Device not supported! Using a generic device with limited properties! Consider requesting device support! [9/22/2021, 9:17:12 AM] [miot] [Miot device] Initializing accessory! [9/22/2021, 9:17:12 AM] [miot] [Miot device] Accessory successfully initialized! Thanks!