merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
394 stars 62 forks source link

Please add support for chuangmi.plug.m3 #87

Closed mrmaximas closed 3 years ago

mrmaximas commented 3 years ago

[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!

merdok commented 3 years ago

Should be straight forward! Will add support for it in the next update!

merdok commented 3 years ago

The device is now supported in version 0.9.15

mrmaximas commented 3 years ago

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!

merdok commented 3 years ago

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

mrmaximas commented 3 years ago

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).

mrmaximas commented 3 years ago

[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.

mrmaximas commented 3 years ago

this is info from my dhcp server Active Host Name |   | chuangmi-plug-m3_miio235159277

merdok commented 3 years ago

You would need to start homebridge in debug mode and set the deepDebug flag to on, that way quite some more log should appear.

mrmaximas commented 3 years ago

[10/2/2021, 11:45:16 AM] Homebridge v1.3.4 (Homebridge C5EC) is running on port 51231. [10/2/2021, 11:45:17 AM] [miot] [Mi Wi-Fi Plug] Connected to device: chuangmi.plug.m3 [10/2/2021, 11:45:17 AM] [miot] [Mi Wi-Fi Plug] Setting up device! [10/2/2021, 11:45:17 AM] [miot] [Mi Wi-Fi Plug] Fetching device info. [10/2/2021, 11:45:17 AM] [miot] [Mi Wi-Fi Plug] Doing device specific setup [10/2/2021, 11:45:17 AM] [miot] [Mi Wi-Fi Plug] Doing initial property fetch [10/2/2021, 11:45:17 AM] [miot] [Mi Wi-Fi Plug] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/2/2021, 11:45:17 AM] [miot] [Mi Wi-Fi Plug] Chunks: [  [  "power",  "led",  "temperature"  ] ] [10/2/2021, 11:45:17 AM] [miot] [Mi Wi-Fi Plug] Device setup finished! Device ready, you can now control your device! [10/2/2021, 11:45:17 AM] [miot] [Mi Wi-Fi Plug] Device connected! [10/2/2021, 11:45:17 AM] [miot] [Mi Wi-Fi Plug] Got device info! Device firmware: 1.3.8_0002 [10/2/2021, 11:45:17 AM] [miot] [Mi Wi-Fi Plug] Full device info:  {  "life": 40265,  "token": "599d44dd5aabxxxxxx",  "mac": "44:23:7C:61:0xxx",  "fw_ver": "1.3.8_0002",  "hw_ver": "ESP8266",  "uid": "6226444xxx",  "model": "chuangmi.plug.m3",  "wifi_fw_ver": "1.5.0-dev(7efd021)",  "ap": {  "rssi": -69,  "ssid": "Uxxxx",  "bssid": "50:FF:20xxxx"  },  "netif": {  "localIp": "192.168.xx",  "mask": "255.255.255.0",  "gw": "192.168.xx"  },  "mmfree": 2256 } [37m[10/2/2021, 11:45:17 AM] [miot] [Mi Wi-Fi Plug] Error on initial property request! Error: Resp invalid json. [10/2/2021, 11:45:17 AM] [miot] [Mi Wi-Fi Plug] Successfully saved device info! [10/2/2021, 11:45:18 AM] [miot] [Mi Fresh Air Ventilator C1-80] Connected to device: zhimi.airfresh.ua1 [10/2/2021, 11:45:18 AM] [miot] [Mi Fresh Air Ventilator C1-80] Setting up device! [10/2/2021, 11:45:18 AM] [miot] [Mi Fresh Air Ventilator C1-80] Fetching device info. [10/2/2021, 11:45:18 AM] [miot] [Mi Fresh Air Ventilator C1-80] Doing device specific setup [10/2/2021, 11:45:18 AM] [miot] [Mi Fresh Air Ventilator C1-80] Doing initial property fetch [10/2/2021, 11:45:18 AM] [miot] [Mi Fresh Air Ventilator C1-80] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/2/2021, 11:45:18 AM] [miot] [Mi Fresh Air Ventilator C1-80] Device setup finished! Device ready, you can now control your device! [10/2/2021, 11:45:18 AM] [miot] [Mi Fresh Air Ventilator C1-80] Device connected!

merdok commented 3 years ago

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.

mrmaximas commented 3 years ago

ok. i will try to find how to do it. after two days. thks

merdok commented 3 years ago

Here you have a guide on how to start homebridge in debug mode: https://github.com/merdok/homebridge-miot#troubleshooting

mrmaximas commented 3 years ago

i know how to switch to debug mode but i don know hot to find more detailed data then i show

merdok commented 3 years ago

The data is simply in your terminal from which you start homebridge in debug mode

mrmaximas commented 3 years ago

which line should i find?

merdok commented 3 years ago

The same as above but there should be much more log output.

mrmaximas commented 3 years ago

[10/4/2021, 9:49:10 PM] [miot] [Mi Wi-Fi Plug] Got device configuration, initializing device with name: Mi Wi-Fi Plug [10/4/2021, 9:49:10 PM] [miot] [Mi Wi-Fi Plug] Found cached device information: chuangmi.plug.m3 [10/4/2021, 9:49:10 PM] [miot] [Mi Wi-Fi Plug] Device model known: chuangmi.plug.m3! Creating device! [10/4/2021, 9:49:10 PM] [miot] [Mi Wi-Fi Plug] Creating miot device! [10/4/2021, 9:49:10 PM] [miot] [Mi Wi-Fi Plug] Device Factory - Creating device instance by model: chuangmi.plug.m3! [10/4/2021, 9:49:10 PM] [miot] [Mi Wi-Fi Plug] Initializing device properties [10/4/2021, 9:49:10 PM] [miot] [Mi Wi-Fi Plug] Device properties: [  "power",  "led",  "temperature" ] [10/4/2021, 9:49:10 PM] [miot] [Mi Wi-Fi Plug] Initializing device actions [10/4/2021, 9:49:10 PM] [miot] [Mi Wi-Fi Plug] Successfully created a Outlet device! It is a Xiaomi Chuangmi Plug M3. [10/4/2021, 9:49:10 PM] [miot] [Mi Wi-Fi Plug] Initializing accessory! [10/4/2021, 9:49:10 PM] [miot] [Mi Wi-Fi Plug] Accessory Factory - Creating Outlet accessory for device Mi Wi-Fi Plug! [10/4/2021, 9:49:10 PM] [miot] [Mi Wi-Fi Plug] Accessory successfully initialized! [37m[10/4/2021, 9:49:11 PM] [miot] [Mi Wi-Fi Plug] Connected to device: chuangmi.plug.m3 [10/4/2021, 9:49:11 PM] [miot] [Mi Wi-Fi Plug] Setting up device! [10/4/2021, 9:49:11 PM] [miot] [Mi Wi-Fi Plug] Fetching device info. [10/4/2021, 9:49:11 PM] [miot] [Mi Wi-Fi Plug] Doing device specific setup [10/4/2021, 9:49:11 PM] [miot] [Mi Wi-Fi Plug] Doing initial property fetch [10/4/2021, 9:49:11 PM] [miot] [Mi Wi-Fi Plug] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [10/4/2021, 9:49:11 PM] [miot] [Mi Wi-Fi Plug] Chunks: [  [  "power",  "led",  "temperature"  ] ] [10/4/2021, 9:49:11 PM] [miot] [Mi Wi-Fi Plug] Device setup finished! Device ready, you can now control your device! [10/4/2021, 9:49:11 PM] [miot] [Mi Wi-Fi Plug] Device connected! [10/4/2021, 9:49:11 PM] [miot] [Mi Wi-Fi Plug] Successfully saved device info! [10/4/2021, 9:49:11 PM] [miot] [Mi Wi-Fi Plug] Got device info! Device firmware: 1.3.8_0002 [10/4/2021, 9:49:11 PM] [miot] [Mi Wi-Fi Plug] Full device info:  {  "life": 249303,  "token": "599xxxx",  "mac": "44:23:7C:61:08:XX",  "fw_ver": "1.3.8_0002",  "hw_ver": "ESP8266",  "uid": "6226444xxx",  "model": "chuangmi.plug.m3",  "wifi_fw_ver": "1.5.0-dev(7efd021)",  "ap": {  "rssi": -70,  "ssid": "xxx",  "bssid": "50:FF:20:33:xx:xx"  },  "netif": {  "localIp": "192.168.xx",  "mask": "255.255.255.0",  "gw": "192.168.xx"  },  "mmfree": 2216 }

merdok commented 3 years ago

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...

mrmaximas commented 3 years ago

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

merdok commented 3 years ago

Yes, but this is not a debug log. This is an information log.

mrmaximas commented 3 years ago

what do the messages we need look like? I don't see anything else, debug is on in the plugin and homebridge

merdok commented 3 years ago

You will see quite some more extra messages in your terminal window if you have correctly enabled debug log and deepDebug in the plugin

mrmaximas commented 3 years ago

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

merdok commented 3 years ago

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...

mrmaximas commented 3 years ago
Screen Shot 2021-10-04 at 22 45 50
mrmaximas commented 3 years ago
Screen Shot 2021-10-04 at 22 46 59
merdok commented 3 years ago

That is good that you have it enabled, but now you need to post the debug log here.

mrmaximas commented 3 years ago

[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.

merdok commented 3 years ago

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.

mrmaximas commented 3 years ago

[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="}

mrmaximas commented 3 years ago

42 degree temp via cloud instead of 0 via plugin

merdok commented 3 years ago

Does it work now?

mrmaximas commented 3 years ago

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 ))

merdok commented 3 years ago

Sorry, i am right now confused. The temperature does not work without MiCloud? In that case we have two options here:

  1. I remove the temperature property as it apparently does not work without the cloud.
  2. Or i mark the device as MiCloud required which will make the temperature work but the response will be slow (2-3 seconds) as you tell
mrmaximas commented 3 years ago

Thanks. A very long way to China telecom)) through the great Chinese firewall)

merdok commented 3 years ago

Ok, then i will remove the temperature property from the outlet

mrmaximas commented 3 years ago

I think that the temperature inside the outlet is an unnecessary, even the Mi Home native application does not show it

merdok commented 3 years ago

Ok, makes sense! I will remove it in the next update!

mrmaximas commented 3 years ago

This is finally a debug log!

it worked when I set debug level 4 in homebridge setting

merdok commented 3 years ago

Oh, ok. I usually start homebridge in debug mode straight from the terminal and not with the ui.