merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
397 stars 64 forks source link

Call to device timed out #624

Closed OxygenLost closed 5 days ago

OxygenLost commented 3 months ago

[8/21/2024, 8:58:10 PM] [miot] [ICX Intelligent Air Conditioning Remote Control] (Protocol) 192.168.2.208 <- (1) {"method":"get_properties","params":[{"did":"741338048","siid":3,"piid":1},{"did":"741338048","siid":3,"piid":2},{"did":"741338048","siid":3,"piid":3},{"did":"741338048","siid":3,"piid":4},{"did":"741338048","siid":4,"piid":2},{"did":"741338048","siid":4,"piid":4},{"did":"741338048","siid":6,"piid":1},{"did":"741338048","siid":6,"piid":3}],"id":102} [8/21/2024, 8:58:10 PM] [miot] [ICX Intelligent Air Conditioning Remote Control] (Protocol) 192.168.2.208 <- !1�,/���|�$�M�Y}b^�iL" [8/21/2024, 8:58:10 PM] [miot] [ICX Intelligent Air Conditioning Remote Control] (Protocol) 192.168.2.208 -> Data: {"id":102,"result":[{"did":"741338048","siid":3,"piid":1,"code":0,"value":true},{"did":"741338048","siid":3,"piid":2,"code":0,"value":0},{"did":"741338048","siid":3,"piid":3,"code":0,"value":0},{"did":"741338048","siid":3,"piid":4,"code":0,"value":28},{,"exe_time":193} [8/21/2024, 8:58:10 PM] [miot] [ICX Intelligent Air Conditioning Remote Control] (Protocol) 192.168.2.208 -> Message: {"id":102,"result":[{"did":"741338048","siid":3,"piid":1,"code":0,"value":true},{"did":"741338048","siid":3,"piid":2,"code":0,"value":0},{"did":"741338048","siid":3,"piid":3,"code":0,"value":0},{"did":"741338048","siid":3,"piid":4,"code":0,"value":28},{,"exe_time":193} [8/21/2024, 8:58:10 PM] [miot] [ICX Intelligent Air Conditioning Remote Control] (Protocol) 192.168.2.208 -> Invalid JSON: SyntaxError: Unexpected token , in JSON at position 253 [miot] [ICX Intelligent Air Conditioning Remote Control] (Protocol) Start handshake 192.168.2.208 [8/21/2024, 8:58:14 PM] [miot] [ICX Intelligent Air Conditioning Remote Control] (Protocol) 192.168.2.208 <- (0) {"method":"get_properties","params":[{"did":"741338048","siid":3,"piid":1},{"did":"741338048","siid":3,"piid":2},{"did":"741338048","siid":3,"piid":3},{"did":"741338048","siid":3,"piid":4},{"did":"741338048","siid":4,"piid":2},{"did":"741338048","siid":4,"piid":4},{"did":"741338048","siid":6,"piid":1},{"did":"741338048","siid":6,"piid":3}],"id":202} [8/21/2024, 8:58:14 PM] [miot] [ICX Intelligent Air Conditioning Remote Control] (Protocol) 192.168.2.208 <- !1�,/�������3����0<�{f [8/21/2024, 8:58:14 PM] [miot] [ICX Intelligent Air Conditioning Remote Control] (Protocol) 192.168.2.208 -> Data: {"id":202,"result":[{"did":"741338048","siid":3,"piid":1,"code":0,"value":true},{"did":"741338048","siid":3,"piid":2,"code":0,"value":0},{"did":"741338048","siid":3,"piid":3,"code":0,"value":0},{"did":"741338048","siid":3,"piid":4,"code":0,"value":28},{,"exe_time":193} [8/21/2024, 8:58:14 PM] [miot] [ICX Intelligent Air Conditioning Remote Control] (Protocol) 192.168.2.208 -> Message: {"id":202,"result":[{"did":"741338048","siid":3,"piid":1,"code":0,"value":true},{"did":"741338048","siid":3,"piid":2,"code":0,"value":0},{"did":"741338048","siid":3,"piid":3,"code":0,"value":0},{"did":"741338048","siid":3,"piid":4,"code":0,"value":28},{,"exe_time":193} [8/21/2024, 8:58:14 PM] [miot] [ICX Intelligent Air Conditioning Remote Control] (Protocol) 192.168.2.208 -> Invalid JSON: SyntaxError: Unexpected token , in JSON at position 253 [8/21/2024, 8:58:18 PM] [miot] [ICX Intelligent Air Conditioning Remote Control] (Protocol) 192.168.2.208 <- Reached maximum number of retries, giving up get_properties - [{"did":"741338048","siid":3,"piid":1},{"did":"741338048","siid":3,"piid":2},{"did":"741338048","siid":3,"piid":3},{"did":"741338048","siid":3,"piid":4},{"did":"741338048","siid":4,"piid":2},{"did":"741338048","siid":4,"piid":4},{"did":"741338048","siid":6,"piid":1},{"did":"741338048","siid":6,"piid":3}] [8/21/2024, 8:58:18 PM] [miot] [ICX Intelligent Air Conditioning Remote Control] (Protocol) 192.168.2.208 <- Error during send! (timeout) Call to device timed out | Request: {"method":"get_properties","params":[{"did":"741338048","siid":3,"piid":1},{"did":"741338048","siid":3,"piid":2},{"did":"741338048","siid":3,"piid":3},{"did":"741338048","siid":3,"piid":4},{"did":"741338048","siid":4,"piid":2},{"did":"741338048","siid":4,"piid":4},{"did":"741338048","siid":6,"piid":1},{"did":"741338048","siid":6,"piid":3}],"id":202} [8/21/2024, 8:58:18 PM] [miot] [ICX Intelligent Air Conditioning Remote Control] Error on initial property request! Error: Call to device timed out

{ "devices": [ { "name": "ICX Intelligent Air Conditioning Remote Control", "ip": "192.168.2.208", "token": "", "deviceId": "", "model": "qjiang.acpartner.wb20", "pollingInterval": 0, "deepDebugLog": true, "silentLog": false, "deviceEnabled": true, "micloud": { "username": "", "password": "", "country": "cn" }, "buzzerControl": true, "ledControl": true, "childLockControl": true, "modeControl": true } ], "platform": "miot" }

merdok commented 3 months ago

Seems like the device does not supports the miot protcol. You would need to try force the device to the MiCloud. For that just specify your MiCloud credentials and set the forceMiCloud flag to true.

OxygenLost commented 3 months ago

And the strange thing is that the program is controllable when it is first started, but not when it reports a failure to contact the device.

I've set it up but it's no use

Marcin @.***>于2024年8月22日 周四00:51写道:

Seems like the device does not supports the miot protcol. You would need to try force the device to the MiCloud. For that just specify your MiCloud credentials and set the forceMiCloud flag to true.

— Reply to this email directly, view it on GitHub https://github.com/merdok/homebridge-miot/issues/624#issuecomment-2302544950, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVKUKBYY6TSCQKCBAO6MQ4LZSTASHAVCNFSM6AAAAABM37SSDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBSGU2DIOJVGA . You are receiving this because you authored the thread.Message ID: @.***>

merdok commented 3 months ago

Sorry, i do no understand what you mean. You have to try to force the device over micloud and check if that fixes your issues.