[Модуль] Xiaomi miIO (xiaomimiio)

Разработка дополнительных модулей, подключение различных приложений.

Модератор: immortal

dksobol
Сообщения: 53
Зарегистрирован: Вт июл 24, 2018 12:01 pm
Благодарил (а): 6 раз
Поблагодарили: 1 раз

Re: [Модуль] Xiaomi miIO

Сообщение dksobol » Ср окт 10, 2018 11:23 pm

skysilver писал(а):
Ср окт 10, 2018 10:42 pm
dksobol писал(а):
Ср окт 10, 2018 10:30 pm
Вылетает ошибка и пылесос идет в офлайн.
Файл лога цикла выложи.
Подскажи где его вырвать.
skysilver
Сообщения: 3006
Зарегистрирован: Чт авг 21, 2014 8:28 am
Откуда: Киров, Россия
Благодарил (а): 400 раз
Поблагодарили: 1753 раза
Контактная информация:

Re: [Модуль] Xiaomi miIO

Сообщение skysilver » Ср окт 10, 2018 11:30 pm

igorewa писал(а):
Ср окт 10, 2018 10:46 pm
Вот мой
1. У тебя тоже цикл внезапно останавливается?
2. Лог цикла выключен - Cycle debug - no
MajorDoMo (GitHub) на Cubietruck. ОС Debian 7 (wheezy) (kernel 3.4.105) с переносом на HDD.
Мой CONNECT | Блоги | Telegram
skysilver
Сообщения: 3006
Зарегистрирован: Чт авг 21, 2014 8:28 am
Откуда: Киров, Россия
Благодарил (а): 400 раз
Поблагодарили: 1753 раза
Контактная информация:

Re: [Модуль] Xiaomi miIO

Сообщение skysilver » Ср окт 10, 2018 11:32 pm

dksobol писал(а):
Ср окт 10, 2018 11:23 pm
Подскажи где его вырвать.
https://kb.smartliving.ru/logi-sistemy-i-moduley/

Но сначала выстави вменяемые периоды опроса. И чтобы они не особо пересекались со значением периодического поиска, а то там 60 сек, что в совокупности дает накладки разного характера.
MajorDoMo (GitHub) на Cubietruck. ОС Debian 7 (wheezy) (kernel 3.4.105) с переносом на HDD.
Мой CONNECT | Блоги | Telegram
Аватара пользователя
igorewa
Сообщения: 515
Зарегистрирован: Ср дек 21, 2016 11:54 pm
Откуда: Киев
Благодарил (а): 12 раз
Поблагодарили: 43 раза

Re: [Модуль] Xiaomi miIO

Сообщение igorewa » Чт окт 11, 2018 12:00 am

log_2018-10-10-cycle_xiaomimiio
СпойлерПоказать

Код: Выделить всё

23:41:12 Starting periodic search for devices in the network (every 120 seconds)
23:41:13 Background search process is started
23:41:59 Request to update the properties of the device 10.0.1.46
23:41:59 Request to update the properties of the device 10.0.1.76
23:42:02 Queue command: {"ID":"245068","DEVICE_ID":"3","METHOD":"get_prop","DATA":"[\"power\",\"aqi\",\"average_aqi\",\"humidity\",\"temp_dec\",\"bright\",\"mode\",\"favorite_level\",\"filter1_life\",\"use_time\",\"purify_volume\",\"led\",\"buzzer\",\"child_lock\"]","ADDED":"2018-10-10 23:41:59","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"zhimi.airpurifier.ma2","IP":"10.0.1.46"}
Command to send - {"id":92041220,"method":"get_prop","params":["power","aqi","average_aqi","humidity","temp_dec","bright","mode","favorite_level","filter1_life","use_time","purify_volume","led","buzzer","child_lock"]}

Checking device status by 10.0.1.46
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.46 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.46 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 02d1
serial: 6ddc
ts: 00084560 --> 542048 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:34:08
checksum: –ú–æ–π —Ç–æ–∫–µ–Ω
ts_server: 5bbe641a --> 1539204122 seconds --> 2018-10-10 23:42:02
timediff: -1538662074

Device 10.0.1.46 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.46 with timeout 2
magic: 2131
length: 00f0 --> 240 –±–∞–π—Ç
unknown1: 00000000
devicetype: 02d1
serial: 6ddc
ts: 00084560 --> 542048 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:34:08
checksum: 7eb23960c4bdf7310e2138d8f0a1d66b
data: 15a364d0817dd5f1a64424c065c93a463c4e04320327e1c32f029f31cb89c215f057587db13eba8477e342eb2028c211c9796a3ef83c041f1dfe88a569e4d310494d82b11215dc0a0928e7b701e7cca6ee84aeda60795fb9fb7cd1439f2381bd7edd4885a9b9d39528d7679bf4ba0bc1d5c91f26fba945771fac94834d46741eb0afaedfb070d48b60a8616573a4b643cf4f3f225d0f54054210014817fe1a26134309d30903e048d153e03de50f04b1c2cb356a7532b65b5bbe4f4fc9c596c823846e7499004b3432d645cf090a8d6e
ts_server: 5bbe641a --> 1539204122 seconds --> 2018-10-10 23:42:02
timediff: -1538662074
 >>>>> Sent 240 bytes to socket
 <<<<< Reply from IP 10.0.1.46 , port 54321
Read 128 bytes from socket
magic: 2131
length: 0080 --> 128 –±–∞–π—Ç
unknown1: 00000000
devicetype: 02d1
serial: 6ddc
ts: 00084560 --> 542048 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:34:08
checksum: c35c6acc0742b5d2b872f6f1a560bf6d
data: b16ce87870ae9e34dad1aaab7f4ac7147608dfe1f20e41adabc49187299f9b342b2bc266d18d5e915aa2bc97b6ba21f1c1480ac8479ad6b94c2f2ef813ac0a805d59b11dd0ec4b4912c7a640805d9d1c85366438fafbdb464a085e65ca0aa945
Data decrypted: {"result":["off",30,8,58,233,null,"idle",10,98,118800,3608,"on","on","off"],"id":92041220}
JSON data is vaild.
23:42:02 Reply: {"result":["off",30,8,58,233,null,"idle",10,98,118800,3608,"on","on","off"],"id":92041220}
23:42:02 Background processing of the response is started
23:42:02 Queue command: {"ID":"245069","DEVICE_ID":"4","METHOD":"get_status","DATA":"[]","ADDED":"2018-10-10 23:41:59","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92041221,"method":"get_status","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe641a --> 1539204122 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:42:02
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe641a --> 1539204122 seconds --> 2018-10-10 23:42:02
timediff: 0

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 00084560 --> 542048 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:34:08
checksum: f1dd5de482f42db52322c5e2dc8d4d7c
data: 24ca36d89eb3e780daf59e06e78bc58a8a6510ed1c1e7782bd4b1f46f5114a66656ea054c201235a34a46730270ed9a714921a0ebc39785e26078ebe9d064e31
ts_server: 5bbe641a --> 1539204122 seconds --> 2018-10-10 23:42:02
timediff: -1538662074
 >>>>> Sent 96 bytes to socket
Error reading from socket [10060] œÓÔ˚Ú͇ ÛÒÚ‡ÌÓ‚ËÚ¸ ÒÓ‰ËÌÂÌË ·˚· ·ÂÁÛÒÔ¯ÌÓÈ, Ú.Í. ÓÚ ‰Û„Ó„Ó ÍÓÏÔ¸˛ÚÂ‡ Á‡ Ú·ÛÂÏÓ ‚ÂÏˇ Ì ÔÓÎÛ˜ÂÌ ÌÛÊÌ˚È ÓÚÍÎËÍ, ËÎË ·˚ÎÓ ‡ÁÓ‚‡ÌÓ ÛÊ ÛÒÚ‡ÌÓ‚ÎÂÌÌÓ ÒÓ‰ËÌÂÌË ËÁ-Á‡ Ì‚ÂÌÓ„Ó ÓÚÍÎË͇ ÛÊ ÔÓ‰Íβ˜ÂÌÌÓ„Ó ÍÓÏÔ¸˛ÚÂ‡.

23:42:04 Reply: {"error":"Device not answered"}
23:42:04 Background processing of the response is started
23:42:04 Queue command: {"ID":"245070","DEVICE_ID":"4","METHOD":"get_consumable","DATA":"[]","ADDED":"2018-10-10 23:42:00","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92041242,"method":"get_consumable","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe641c --> 1539204124 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:42:04
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe641c --> 1539204124 seconds --> 2018-10-10 23:42:04
timediff: 0

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 00084562 --> 542050 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:34:10
checksum: 5ac617b52390813bb3e9bdac60f03ae8
data: 9d723554b049eec236092c39416193c3505a2037a57cd79869b7a86d6bec0eb48f346981bd3faa52784b4715b930a6449f1bd6b2e00b9f8c427ccdf9d7b17914
ts_server: 5bbe641c --> 1539204124 seconds --> 2018-10-10 23:42:04
timediff: -1538662074
 >>>>> Sent 96 bytes to socket
Error reading from socket [10060] œÓÔ˚Ú͇ ÛÒÚ‡ÌÓ‚ËÚ¸ ÒÓ‰ËÌÂÌË ·˚· ·ÂÁÛÒÔ¯ÌÓÈ, Ú.Í. ÓÚ ‰Û„Ó„Ó ÍÓÏÔ¸˛ÚÂ‡ Á‡ Ú·ÛÂÏÓ ‚ÂÏˇ Ì ÔÓÎÛ˜ÂÌ ÌÛÊÌ˚È ÓÚÍÎËÍ, ËÎË ·˚ÎÓ ‡ÁÓ‚‡ÌÓ ÛÊ ÛÒÚ‡ÌÓ‚ÎÂÌÌÓ ÒÓ‰ËÌÂÌË ËÁ-Á‡ Ì‚ÂÌÓ„Ó ÓÚÍÎË͇ ÛÊ ÔÓ‰Íβ˜ÂÌÌÓ„Ó ÍÓÏÔ¸˛ÚÂ‡.

23:42:06 Reply: {"error":"Device not answered"}
23:42:06 Background processing of the response is started
23:42:06 Queue command: {"ID":"245071","DEVICE_ID":"4","METHOD":"get_custom_mode","DATA":"[]","ADDED":"2018-10-10 23:42:01","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92041263,"method":"get_custom_mode","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe641e --> 1539204126 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:42:06
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe641e --> 1539204126 seconds --> 2018-10-10 23:42:06
timediff: 0

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 00084564 --> 542052 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:34:12
checksum: 38bed3ada53caddba8ff45e084c5e632
data: c27c48ac75331f0747f780fb5dcf129af4087f7178453bc628976621b3eaacc86e143bcd27a7c22bce9c5f275fd79bb77ac1f3f96a398f1b76e12d6f3df203e3
ts_server: 5bbe641e --> 1539204126 seconds --> 2018-10-10 23:42:06
timediff: -1538662074
 >>>>> Sent 96 bytes to socket
Error reading from socket [10060] œÓÔ˚Ú͇ ÛÒÚ‡ÌÓ‚ËÚ¸ ÒÓ‰ËÌÂÌË ·˚· ·ÂÁÛÒÔ¯ÌÓÈ, Ú.Í. ÓÚ ‰Û„Ó„Ó ÍÓÏÔ¸˛ÚÂ‡ Á‡ Ú·ÛÂÏÓ ‚ÂÏˇ Ì ÔÓÎÛ˜ÂÌ ÌÛÊÌ˚È ÓÚÍÎËÍ, ËÎË ·˚ÎÓ ‡ÁÓ‚‡ÌÓ ÛÊ ÛÒÚ‡ÌÓ‚ÎÂÌÌÓ ÒÓ‰ËÌÂÌË ËÁ-Á‡ Ì‚ÂÌÓ„Ó ÓÚÍÎË͇ ÛÊ ÔÓ‰Íβ˜ÂÌÌÓ„Ó ÍÓÏÔ¸˛ÚÂ‡.

23:42:08 Reply: {"error":"Device not answered"}
23:42:08 Background processing of the response is started
23:43:00 Request to update the properties of the device 10.0.1.76
23:43:03 Queue command: {"ID":"245072","DEVICE_ID":"4","METHOD":"get_status","DATA":"[]","ADDED":"2018-10-10 23:43:00","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92041830,"method":"get_status","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6456 --> 1539204182 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:43:02
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe6457 --> 1539204183 seconds --> 2018-10-10 23:43:03
timediff: -1

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6456 --> 1539204182 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:43:02
checksum: a5661ab08dda666ff43a46faef52aeb0
data: a7d0de0e9c9f42b83508a237bbe3c4d082de74d80850398addc5c5da122a02f321d75d321310bece1452f08f7705b073926de792badc8086d348d149a7b80de7
ts_server: 5bbe6457 --> 1539204183 seconds --> 2018-10-10 23:43:03
timediff: -1
 >>>>> Sent 96 bytes to socket
 <<<<< Reply from IP 10.0.1.76 , port 54321
Read 240 bytes from socket
magic: 2131
length: 00f0 --> 240 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6456 --> 1539204182 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:43:02
checksum: 7d8ef8435dcc1d984de3e210c591e1ac
data: c9992bdfe166a173b026136732ba4c32820f44955be95b65856b6b98ff7e097b4c43641ff7d55c1177c299805c193c0a923824d59af2fb5d109190a16442776fff398f636c1c643bd8cd3f1f8ead53aac0da35b99177334e6330486dfb80952f9d36f6e25c77e08ffa92767a4526f9cea52056ca1dc53e7115a7f3035b3bb32c431f065823337e5a5087d0f97aeb374af9407cac6bd5cbea89a7a53d9181d8190b3a1ca7d453dd8ca8ec9431cdfd3083f20a8cf367bedf863f8e65240b1b3c20ddb1ba33125e5e69d81f270722f5a844
Data decrypted: {"result":[{"msg_ver":2,"msg_seq":2456,"state":8,"battery":100,"clean_time":2128,"clean_area":36377500,"error_code":0,"map_present":1,"in_cleaning":0,"fan_power":100,"dnd_enabled":1}],"id":92041830}
Invalid JSON data. Error: Control character error, possibly incorrectly encoded
Executing trim()
23:43:03 Reply: {"result":[{"msg_ver":2,"msg_seq":2456,"state":8,"battery":100,"clean_time":2128,"clean_area":36377500,"error_code":0,"map_present":1,"in_cleaning":0,"fan_power":100,"dnd_enabled":1}],"id":92041830}
23:43:03 Background processing of the response is started
23:43:03 Queue command: {"ID":"245073","DEVICE_ID":"4","METHOD":"get_consumable","DATA":"[]","ADDED":"2018-10-10 23:43:01","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92041831,"method":"get_consumable","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6456 --> 1539204182 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:43:02
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe6457 --> 1539204183 seconds --> 2018-10-10 23:43:03
timediff: -1

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6456 --> 1539204182 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:43:02
checksum: d7610da34258af11432b91c2fa78be3c
data: 8e52154b2f6390425b47260f40cbaf9a3deae03cd0e181dca4cbaafebaee8b4658c6e9bd4be81d90996c8792fbe8f3d309a57adcac5f95175a45b605f5172fc8
ts_server: 5bbe6457 --> 1539204183 seconds --> 2018-10-10 23:43:03
timediff: -1
 >>>>> Sent 96 bytes to socket
 <<<<< Reply from IP 10.0.1.76 , port 54321
Read 176 bytes from socket
magic: 2131
length: 00b0 --> 176 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6456 --> 1539204182 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:43:02
checksum: 23a0d60a1c1384bc5391698d180c27c8
data: 1175e9aa68a1a0bb8c61d4ebb9fc2848b0ed20932c0a3911db6b0126263a42378e6beb2f37075fdd01a8098297bddc091cb2188b24be4314f4a770c7c2bc6f2a563dcdc8b87ccb087b9be37f23acf338c5ecbe4fefa6833b13ca97682207c948d9ba1cac86648630834c786f7b0d4c228fad761f2af600bffaa49c5ddcf996354019e63a66490df1c0d5774625063fe2
Data decrypted: {"result":[{"main_brush_work_time":54095,"side_brush_work_time":54095,"filter_work_time":54095,"sensor_dirty_time":54095}],"id":92041831}
Invalid JSON data. Error: Control character error, possibly incorrectly encoded
Executing trim()
23:43:03 Reply: {"result":[{"main_brush_work_time":54095,"side_brush_work_time":54095,"filter_work_time":54095,"sensor_dirty_time":54095}],"id":92041831}
23:43:03 Background processing of the response is started
23:43:03 Queue command: {"ID":"245074","DEVICE_ID":"4","METHOD":"get_custom_mode","DATA":"[]","ADDED":"2018-10-10 23:43:02","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92041832,"method":"get_custom_mode","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6456 --> 1539204182 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:43:02
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe6457 --> 1539204183 seconds --> 2018-10-10 23:43:03
timediff: -1

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6456 --> 1539204182 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:43:02
checksum: 893eb98541cf691bf5b7efa15a59a6f0
data: e4d8b8bfe3ab8ddcff6fdd726c8184e31ef597913dff2e9844e006e7f959fd87f9304485428f6b54a9c06c1bf68ed91951812d250692e57a93496ccb9b1ca6cb
ts_server: 5bbe6457 --> 1539204183 seconds --> 2018-10-10 23:43:03
timediff: -1
 >>>>> Sent 96 bytes to socket
 <<<<< Reply from IP 10.0.1.76 , port 54321
Read 64 bytes from socket
magic: 2131
length: 0040 --> 64 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6456 --> 1539204182 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:43:02
checksum: d7daf49877e6c9ee7719e4d4e66e2f96
data: 2b44ac1e98b6565c719afbfe9dfc40fcd9eb88c55772227f258a287461a398aa
Data decrypted: {"result":[100],"id":92041832}
Invalid JSON data. Error: Control character error, possibly incorrectly encoded
Executing trim()
23:43:03 Reply: {"result":[100],"id":92041832}
23:43:03 Background processing of the response is started
23:43:12 Starting periodic search for devices in the network (every 120 seconds)
23:43:13 Background search process is started
23:43:59 Request to update the properties of the device 10.0.1.46
23:44:00 Queue command: {"ID":"245075","DEVICE_ID":"3","METHOD":"get_prop","DATA":"[\"power\",\"aqi\",\"average_aqi\",\"humidity\",\"temp_dec\",\"bright\",\"mode\",\"favorite_level\",\"filter1_life\",\"use_time\",\"purify_volume\",\"led\",\"buzzer\",\"child_lock\"]","ADDED":"2018-10-10 23:43:59","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"zhimi.airpurifier.ma2","IP":"10.0.1.46"}
Command to send - {"id":92042400,"method":"get_prop","params":["power","aqi","average_aqi","humidity","temp_dec","bright","mode","favorite_level","filter1_life","use_time","purify_volume","led","buzzer","child_lock"]}

Checking device status by 10.0.1.46
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.46 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.46 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 02d1
serial: 6ddc
ts: 000845d7 --> 542167 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:36:07
checksum: –ú–æ–π —Ç–æ–∫–µ–Ω
ts_server: 5bbe6490 --> 1539204240 seconds --> 2018-10-10 23:44:00
timediff: -1538662073

Device 10.0.1.46 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.46 with timeout 2
magic: 2131
length: 00f0 --> 240 –±–∞–π—Ç
unknown1: 00000000
devicetype: 02d1
serial: 6ddc
ts: 000845d7 --> 542167 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:36:07
checksum: d908b1d97cdb2f424ee217776d8bcbae
data: 010cb4bccff025bf0841960e25d7d79a6b6cd5fda1fbd55cf520def6254bb5723ad509efbbd7de1638f2321c52559f467cacf1864888cbe5fab064ede19dad7689f34ceed40ff45c9d6f900b7c51a8bfa9646dc06d6e45fb0314fc0d6379325fa5e96b831f328efc79e27ef154399e234e65ce99aa84d54e2cf3032133d441fb219f0a0a273d614b4bcb4e5464272fa64200c10d687b9ccbe7474f7d0e07ef3e356f1f29f262eafd3096360e0d5555679161bd75defee39c216fa1d0e8cbb7e2aacdeb386eff84487f4c6d1264f9b002
ts_server: 5bbe6490 --> 1539204240 seconds --> 2018-10-10 23:44:00
timediff: -1538662073
 >>>>> Sent 240 bytes to socket
 <<<<< Reply from IP 10.0.1.46 , port 54321
Read 128 bytes from socket
magic: 2131
length: 0080 --> 128 –±–∞–π—Ç
unknown1: 00000000
devicetype: 02d1
serial: 6ddc
ts: 000845d7 --> 542167 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:36:07
checksum: 7f9324163e30185ad987c105323b9f44
data: b16ce87870ae9e34dad1aaab7f4ac7147608dfe1f20e41adabc49187299f9b342b2bc266d18d5e915aa2bc97b6ba21f1c1480ac8479ad6b94c2f2ef813ac0a805d59b11dd0ec4b4912c7a640805d9d1caabe6177e03caa6ca0768b70181a81c5
Data decrypted: {"result":["off",30,8,58,233,null,"idle",10,98,118800,3608,"on","on","off"],"id":92042400}
JSON data is vaild.
23:44:00 Reply: {"result":["off",30,8,58,233,null,"idle",10,98,118800,3608,"on","on","off"],"id":92042400}
23:44:00 Background processing of the response is started
23:44:00 Request to update the properties of the device 10.0.1.76
23:44:03 Queue command: {"ID":"245076","DEVICE_ID":"4","METHOD":"get_status","DATA":"[]","ADDED":"2018-10-10 23:44:00","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92042430,"method":"get_status","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6493 --> 1539204243 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:44:03
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe6493 --> 1539204243 seconds --> 2018-10-10 23:44:03
timediff: 0

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 000845da --> 542170 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:36:10
checksum: 6694ef9df120d587abb22518344e05f4
data: 88c1eb59c55ec3446e01f83b7aff6fbb07da277e0b17fbf341ad9f75eb172ec360b6a058243b14932c00927404fd1e418547bba2941666b46923e85ac5d550fc
ts_server: 5bbe6493 --> 1539204243 seconds --> 2018-10-10 23:44:03
timediff: -1538662073
 >>>>> Sent 96 bytes to socket
Error reading from socket [10060] œÓÔ˚Ú͇ ÛÒÚ‡ÌÓ‚ËÚ¸ ÒÓ‰ËÌÂÌË ·˚· ·ÂÁÛÒÔ¯ÌÓÈ, Ú.Í. ÓÚ ‰Û„Ó„Ó ÍÓÏÔ¸˛ÚÂ‡ Á‡ Ú·ÛÂÏÓ ‚ÂÏˇ Ì ÔÓÎÛ˜ÂÌ ÌÛÊÌ˚È ÓÚÍÎËÍ, ËÎË ·˚ÎÓ ‡ÁÓ‚‡ÌÓ ÛÊ ÛÒÚ‡ÌÓ‚ÎÂÌÌÓ ÒÓ‰ËÌÂÌË ËÁ-Á‡ Ì‚ÂÌÓ„Ó ÓÚÍÎË͇ ÛÊ ÔÓ‰Íβ˜ÂÌÌÓ„Ó ÍÓÏÔ¸˛ÚÂ‡.

23:44:05 Reply: {"error":"Device not answered"}
23:44:05 Background processing of the response is started
23:44:05 Queue command: {"ID":"245077","DEVICE_ID":"4","METHOD":"get_consumable","DATA":"[]","ADDED":"2018-10-10 23:44:01","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92042451,"method":"get_consumable","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6495 --> 1539204245 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:44:05
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe6495 --> 1539204245 seconds --> 2018-10-10 23:44:05
timediff: 0

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 000845dc --> 542172 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:36:12
checksum: 9ff11f638e89335781beecbae8fcce98
data: b29a26204c8da77dbbc974d5b3d5a4e66c54d27dc16d8c9bf362984dafabe43d03119d67a6e5029448f1a146ff2a6d62aec0cb96ddcbe7f379775fcb0f2289a2
ts_server: 5bbe6495 --> 1539204245 seconds --> 2018-10-10 23:44:05
timediff: -1538662073
 >>>>> Sent 96 bytes to socket
Error reading from socket [10060] œÓÔ˚Ú͇ ÛÒÚ‡ÌÓ‚ËÚ¸ ÒÓ‰ËÌÂÌË ·˚· ·ÂÁÛÒÔ¯ÌÓÈ, Ú.Í. ÓÚ ‰Û„Ó„Ó ÍÓÏÔ¸˛ÚÂ‡ Á‡ Ú·ÛÂÏÓ ‚ÂÏˇ Ì ÔÓÎÛ˜ÂÌ ÌÛÊÌ˚È ÓÚÍÎËÍ, ËÎË ·˚ÎÓ ‡ÁÓ‚‡ÌÓ ÛÊ ÛÒÚ‡ÌÓ‚ÎÂÌÌÓ ÒÓ‰ËÌÂÌË ËÁ-Á‡ Ì‚ÂÌÓ„Ó ÓÚÍÎË͇ ÛÊ ÔÓ‰Íβ˜ÂÌÌÓ„Ó ÍÓÏÔ¸˛ÚÂ‡.

23:44:07 Reply: {"error":"Device not answered"}
23:44:07 Background processing of the response is started
23:44:07 Queue command: {"ID":"245078","DEVICE_ID":"4","METHOD":"get_custom_mode","DATA":"[]","ADDED":"2018-10-10 23:44:02","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92042472,"method":"get_custom_mode","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6497 --> 1539204247 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:44:07
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe6497 --> 1539204247 seconds --> 2018-10-10 23:44:07
timediff: 0

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 000845de --> 542174 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:36:14
checksum: 743994b89f3ccb027f994b81e3bcd58a
data: a9a67974704394ed05973193bc3c87550f35f9ee8ffdc9ab03ca5307e79c94cf552a9deda20bdfbd7f9914a4379245e8a0e1f0c374fae328ad495ab71493ac27
ts_server: 5bbe6497 --> 1539204247 seconds --> 2018-10-10 23:44:07
timediff: -1538662073
 >>>>> Sent 96 bytes to socket
Error reading from socket [10060] œÓÔ˚Ú͇ ÛÒÚ‡ÌÓ‚ËÚ¸ ÒÓ‰ËÌÂÌË ·˚· ·ÂÁÛÒÔ¯ÌÓÈ, Ú.Í. ÓÚ ‰Û„Ó„Ó ÍÓÏÔ¸˛ÚÂ‡ Á‡ Ú·ÛÂÏÓ ‚ÂÏˇ Ì ÔÓÎÛ˜ÂÌ ÌÛÊÌ˚È ÓÚÍÎËÍ, ËÎË ·˚ÎÓ ‡ÁÓ‚‡ÌÓ ÛÊ ÛÒÚ‡ÌÓ‚ÎÂÌÌÓ ÒÓ‰ËÌÂÌË ËÁ-Á‡ Ì‚ÂÌÓ„Ó ÓÚÍÎË͇ ÛÊ ÔÓ‰Íβ˜ÂÌÌÓ„Ó ÍÓÏÔ¸˛ÚÂ‡.

23:44:09 Reply: {"error":"Device not answered"}
23:44:09 Background processing of the response is started
23:45:00 Request to update the properties of the device 10.0.1.76
23:45:03 Queue command: {"ID":"245079","DEVICE_ID":"4","METHOD":"get_status","DATA":"[]","ADDED":"2018-10-10 23:45:00","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92043030,"method":"get_status","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe64cf --> 1539204303 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:45:03
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe64cf --> 1539204303 seconds --> 2018-10-10 23:45:03
timediff: 0

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 00084616 --> 542230 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:37:10
checksum: 
data: 5c05113e26d1862de3341ea46df100703f2159ce52fbbd1e2af1efcae6a7dc58022137246db357e2f93fed0630cc674db299aaa3faa282dd3c4a453eac8317ce
ts_server: 5bbe64cf --> 1539204303 seconds --> 2018-10-10 23:45:03
timediff: -1538662073
 >>>>> Sent 96 bytes to socket
Error reading from socket [10060] œÓÔ˚Ú͇ ÛÒÚ‡ÌÓ‚ËÚ¸ ÒÓ‰ËÌÂÌË ·˚· ·ÂÁÛÒÔ¯ÌÓÈ, Ú.Í. ÓÚ ‰Û„Ó„Ó ÍÓÏÔ¸˛ÚÂ‡ Á‡ Ú·ÛÂÏÓ ‚ÂÏˇ Ì ÔÓÎÛ˜ÂÌ ÌÛÊÌ˚È ÓÚÍÎËÍ, ËÎË ·˚ÎÓ ‡ÁÓ‚‡ÌÓ ÛÊ ÛÒÚ‡ÌÓ‚ÎÂÌÌÓ ÒÓ‰ËÌÂÌË ËÁ-Á‡ Ì‚ÂÌÓ„Ó ÓÚÍÎË͇ ÛÊ ÔÓ‰Íβ˜ÂÌÌÓ„Ó ÍÓÏÔ¸˛ÚÂ‡.

23:45:05 Reply: {"error":"Device not answered"}
23:45:05 Background processing of the response is started
23:45:05 Queue command: {"ID":"245080","DEVICE_ID":"4","METHOD":"get_consumable","DATA":"[]","ADDED":"2018-10-10 23:45:01","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92043051,"method":"get_consumable","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe64d1 --> 1539204305 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:45:05
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe64d1 --> 1539204305 seconds --> 2018-10-10 23:45:05
timediff: 0

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 00084618 --> 542232 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:37:12
checksum: 
data: a5034e60e32445f5e4cc8436c6e6d0b12e02e62817e6d0600da1f30bc155dd81d904f43d5989028bf970827cad18819bf9e211be6839159171a930c075a94fff
ts_server: 5bbe64d1 --> 1539204305 seconds --> 2018-10-10 23:45:05
timediff: -1538662073
 >>>>> Sent 96 bytes to socket
Error reading from socket [10060] œÓÔ˚Ú͇ ÛÒÚ‡ÌÓ‚ËÚ¸ ÒÓ‰ËÌÂÌË ·˚· ·ÂÁÛÒÔ¯ÌÓÈ, Ú.Í. ÓÚ ‰Û„Ó„Ó ÍÓÏÔ¸˛ÚÂ‡ Á‡ Ú·ÛÂÏÓ ‚ÂÏˇ Ì ÔÓÎÛ˜ÂÌ ÌÛÊÌ˚È ÓÚÍÎËÍ, ËÎË ·˚ÎÓ ‡ÁÓ‚‡ÌÓ ÛÊ ÛÒÚ‡ÌÓ‚ÎÂÌÌÓ ÒÓ‰ËÌÂÌË ËÁ-Á‡ Ì‚ÂÌÓ„Ó ÓÚÍÎË͇ ÛÊ ÔÓ‰Íβ˜ÂÌÌÓ„Ó ÍÓÏÔ¸˛ÚÂ‡.

23:45:07 Reply: {"error":"Device not answered"}
23:45:07 Background processing of the response is started
23:45:07 Queue command: {"ID":"245081","DEVICE_ID":"4","METHOD":"get_custom_mode","DATA":"[]","ADDED":"2018-10-10 23:45:02","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92043072,"method":"get_custom_mode","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe64d3 --> 1539204307 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:45:07
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe64d3 --> 1539204307 seconds --> 2018-10-10 23:45:07
timediff: 0

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 0008461a --> 542234 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:37:14
checksum: 
data: 356dc052ab87e044fe2560b8f14954db7f74457ce710b37c489682008324464b9c011eb54a37aaa4f0df4fc9dca2567713583c2afa11e03f59dd8de674be6ba8
ts_server: 5bbe64d3 --> 1539204307 seconds --> 2018-10-10 23:45:07
timediff: -1538662073
 >>>>> Sent 96 bytes to socket
Error reading from socket [10060] œÓÔ˚Ú͇ ÛÒÚ‡ÌÓ‚ËÚ¸ ÒÓ‰ËÌÂÌË ·˚· ·ÂÁÛÒÔ¯ÌÓÈ, Ú.Í. ÓÚ ‰Û„Ó„Ó ÍÓÏÔ¸˛ÚÂ‡ Á‡ Ú·ÛÂÏÓ ‚ÂÏˇ Ì ÔÓÎÛ˜ÂÌ ÌÛÊÌ˚È ÓÚÍÎËÍ, ËÎË ·˚ÎÓ ‡ÁÓ‚‡ÌÓ ÛÊ ÛÒÚ‡ÌÓ‚ÎÂÌÌÓ ÒÓ‰ËÌÂÌË ËÁ-Á‡ Ì‚ÂÌÓ„Ó ÓÚÍÎË͇ ÛÊ ÔÓ‰Íβ˜ÂÌÌÓ„Ó ÍÓÏÔ¸˛ÚÂ‡.

23:45:09 Reply: {"error":"Device not answered"}
23:45:09 Background processing of the response is started
23:45:12 Starting periodic search for devices in the network (every 120 seconds)
23:45:13 Background search process is started
23:45:59 Request to update the properties of the device 10.0.1.46
23:46:00 Queue command: {"ID":"245082","DEVICE_ID":"3","METHOD":"get_prop","DATA":"[\"power\",\"aqi\",\"average_aqi\",\"humidity\",\"temp_dec\",\"bright\",\"mode\",\"favorite_level\",\"filter1_life\",\"use_time\",\"purify_volume\",\"led\",\"buzzer\",\"child_lock\"]","ADDED":"2018-10-10 23:45:59","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"zhimi.airpurifier.ma2","IP":"10.0.1.46"}
Command to send - {"id":92043600,"method":"get_prop","params":["power","aqi","average_aqi","humidity","temp_dec","bright","mode","favorite_level","filter1_life","use_time","purify_volume","led","buzzer","child_lock"]}

Checking device status by 10.0.1.46
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.46 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.46 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 02d1
serial: 6ddc
ts: 0008464f --> 542287 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:38:07
checksum: –ú–æ–π —Ç–æ–∫–µ–Ω
ts_server: 5bbe6508 --> 1539204360 seconds --> 2018-10-10 23:46:00
timediff: -1538662073

Device 10.0.1.46 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.46 with timeout 2
magic: 2131
length: 00f0 --> 240 –±–∞–π—Ç
unknown1: 00000000
devicetype: 02d1
serial: 6ddc
ts: 0008464f --> 542287 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:38:07
checksum: 3
data: 99ac43eab114d2decd9274379717b35cd7ab2e4863f357eed48c6af19119af0779bb7ed7bd6c1b4d3ee3bf3b1779e51f760c108bd3e42ae0e39a10354443df25e85991d4e66f55b2ef8ab145f132441ead6e27a71b1d4ef234696e5217314e71007f66141db445a56b65821340afaca05e2ef73a51b736fd5aa9eb3a83073d01750adfaa128e88c91e57d6fcedb1bb86eb57bce20adc7138d4d9218282523d90c0bc0e81f079129b30c6669677d5a5815153c99102dc315b66302f8c9facb19272fafbc1c9a1b139a8b0fe71eafa4bd4
ts_server: 5bbe6508 --> 1539204360 seconds --> 2018-10-10 23:46:00
timediff: -1538662073
 >>>>> Sent 240 bytes to socket
 <<<<< Reply from IP 10.0.1.46 , port 54321
Read 128 bytes from socket
magic: 2131
length: 0080 --> 128 –±–∞–π—Ç
unknown1: 00000000
devicetype: 02d1
serial: 6ddc
ts: 0008464f --> 542287 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:38:07
checksum: 
data: b16ce87870ae9e34dad1aaab7f4ac714aa365d8276adb0da2a83821b856a08e598c4c31e3b076c10defbddb7b41cc29c0ccccbe58b6915ca04931b843e661be57fa4b7bd4c6d90a8f05d2834d77a1010b7cca3beb50a818fd0ce9a987dd03abe
Data decrypted: {"result":["off",23,8,58,232,null,"idle",10,98,118800,3608,"on","on","off"],"id":92043600}
JSON data is vaild.
23:46:00 Reply: {"result":["off",23,8,58,232,null,"idle",10,98,118800,3608,"on","on","off"],"id":92043600}
23:46:00 Background processing of the response is started
23:46:00 Request to update the properties of the device 10.0.1.76
23:46:03 Queue command: {"ID":"245083","DEVICE_ID":"4","METHOD":"get_status","DATA":"[]","ADDED":"2018-10-10 23:46:00","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92043630,"method":"get_status","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe650b --> 1539204363 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:46:03
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe650b --> 1539204363 seconds --> 2018-10-10 23:46:03
timediff: 0

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 00084652 --> 542290 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:38:10
checksum: 
data: c3a483f3ee555b6565aec9aea85d42a50b3c52531f110b9cba5889d0254a57bc6268ac43d3a44a7334b870b1dc1922d2c7273796bcb23666af0b88a4161e0470
ts_server: 5bbe650b --> 1539204363 seconds --> 2018-10-10 23:46:03
timediff: -1538662073
 >>>>> Sent 96 bytes to socket
Error reading from socket [10060] œÓÔ˚Ú͇ ÛÒÚ‡ÌÓ‚ËÚ¸ ÒÓ‰ËÌÂÌË ·˚· ·ÂÁÛÒÔ¯ÌÓÈ, Ú.Í. ÓÚ ‰Û„Ó„Ó ÍÓÏÔ¸˛ÚÂ‡ Á‡ Ú·ÛÂÏÓ ‚ÂÏˇ Ì ÔÓÎÛ˜ÂÌ ÌÛÊÌ˚È ÓÚÍÎËÍ, ËÎË ·˚ÎÓ ‡ÁÓ‚‡ÌÓ ÛÊ ÛÒÚ‡ÌÓ‚ÎÂÌÌÓ ÒÓ‰ËÌÂÌË ËÁ-Á‡ Ì‚ÂÌÓ„Ó ÓÚÍÎË͇ ÛÊ ÔÓ‰Íβ˜ÂÌÌÓ„Ó ÍÓÏÔ¸˛ÚÂ‡.

23:46:05 Reply: {"error":"Device not answered"}
23:46:06 Background processing of the response is started
23:46:06 Queue command: {"ID":"245084","DEVICE_ID":"4","METHOD":"get_consumable","DATA":"[]","ADDED":"2018-10-10 23:46:01","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92043661,"method":"get_consumable","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe650d --> 1539204365 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:46:05
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe650e --> 1539204366 seconds --> 2018-10-10 23:46:06
timediff: -1

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe650d --> 1539204365 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:46:05
checksum: 
data: ccf55fded61286f24f2261a9aaf5d20f2b935e052f8957f15f870aed77e8765757204ced41bbfc672d5ec1bd00fb9c8a2d964ce7961a3ed70e83af10959b27e8
ts_server: 5bbe650e --> 1539204366 seconds --> 2018-10-10 23:46:06
timediff: -1
 >>>>> Sent 96 bytes to socket
 <<<<< Reply from IP 10.0.1.76 , port 54321
Read 176 bytes from socket
magic: 2131
length: 00b0 --> 176 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe650d --> 1539204365 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:46:05
checksum: 
data: 1175e9aa68a1a0bb8c61d4ebb9fc2848b0ed20932c0a3911db6b0126263a42378e6beb2f37075fdd01a8098297bddc091cb2188b24be4314f4a770c7c2bc6f2a563dcdc8b87ccb087b9be37f23acf338c5ecbe4fefa6833b13ca97682207c948d9ba1cac86648630834c786f7b0d4c228fad761f2af600bffaa49c5ddcf9963525ac046582975c9a4c38f4b494b55475
Data decrypted: {"result":[{"main_brush_work_time":54095,"side_brush_work_time":54095,"filter_work_time":54095,"sensor_dirty_time":54095}],"id":92043661}
Invalid JSON data. Error: Control character error, possibly incorrectly encoded
Executing trim()
23:46:06 Reply: {"result":[{"main_brush_work_time":54095,"side_brush_work_time":54095,"filter_work_time":54095,"sensor_dirty_time":54095}],"id":92043661}
23:46:06 Background processing of the response is started
23:46:06 Queue command: {"ID":"245085","DEVICE_ID":"4","METHOD":"get_custom_mode","DATA":"[]","ADDED":"2018-10-10 23:46:02","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92043662,"method":"get_custom_mode","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe650d --> 1539204365 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:46:05
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe650e --> 1539204366 seconds --> 2018-10-10 23:46:06
timediff: -1

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe650d --> 1539204365 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:46:05
checksum:
data: 00298d746b1744b4b7c4eb3c6d115bb0fca6c478c311b884dfaef0610648f42de192423a1643ee9c4dbe1570df8770cc2e635dc4cb2f41a89c7dd5efcffc6e04
ts_server: 5bbe650e --> 1539204366 seconds --> 2018-10-10 23:46:06
timediff: -1
 >>>>> Sent 96 bytes to socket
 <<<<< Reply from IP 10.0.1.76 , port 54321
Read 64 bytes from socket
magic: 2131
length: 0040 --> 64 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe650d --> 1539204365 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:46:05
checksum: 
data: 2b44ac1e98b6565c719afbfe9dfc40fc9055688ad97c1fc7078aa189e32eb20e
Data decrypted: {"result":[100],"id":92043662}
Invalid JSON data. Error: Control character error, possibly incorrectly encoded
Executing trim()
23:46:06 Reply: {"result":[100],"id":92043662}
23:46:06 Background processing of the response is started
23:46:56 Running cycle_xiaomimiio.php
23:46:56 Init miIO 
23:46:56 Bind IP - 10.0.1.5
23:46:56 Discover period - 180 seconds
23:46:56 Cycle debug - yes
23:46:56 DebMes debug - yes
23:46:56 miIO-Lib debug - yes
Broadband discovery mode
Debug status [1]
Socked created
23:46:56 Starting periodic search for devices in the network (every 180 seconds)
23:46:57 Background search process is started
23:47:00 Request to update the properties of the device 10.0.1.76
23:47:03 Queue command: {"ID":"245086","DEVICE_ID":"4","METHOD":"get_status","DATA":"[]","ADDED":"2018-10-10 23:47:00","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92044230,"method":"get_status","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6547 --> 1539204423 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:47:03
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe6547 --> 1539204423 seconds --> 2018-10-10 23:47:03
timediff: 0

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6547 --> 1539204423 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:47:03
checksum: 
data: f0d7ab971dc5a84f474349fe117ce159b0f7c684ff9a0ef6c7d6c711317aadb7a0c4fc6ed58100eb22b15ada1c6fe66f13a482c9b523b133eb34a3e3d9643ffb
ts_server: 5bbe6547 --> 1539204423 seconds --> 2018-10-10 23:47:03
timediff: 0
 >>>>> Sent 96 bytes to socket
 <<<<< Reply from IP 10.0.1.76 , port 54321
Read 240 bytes from socket
magic: 2131
length: 00f0 --> 240 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6547 --> 1539204423 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:47:03
checksum: 
data: c9992bdfe166a173b026136732ba4c32820f44955be95b65856b6b98ff7e097b2f2b63691be96b9974ba8ab464071fbe6183076b9f79ab0819767cddd9d8cd5755938d98bd4b759e83d13afb031c3ab1263d37aaed600536de97dcc6050dd0b91b878c95272364092a7eb37ab5641b2284bb218de003d1bdba5dbef17d83c3b63aaa4682058918fe0034e31dce7b854b16f2b42fc56ee81936b99a4023e4c7e329aaaf3944348d4ef90d513f6e52c5d31b7188e393b5341614cef98b9ced965ae0247d5524debfebaa10339d392f0e67
Data decrypted: {"result":[{"msg_ver":2,"msg_seq":2465,"state":8,"battery":100,"clean_time":2128,"clean_area":36377500,"error_code":0,"map_present":1,"in_cleaning":0,"fan_power":100,"dnd_enabled":1}],"id":92044230}
Invalid JSON data. Error: Control character error, possibly incorrectly encoded
Executing trim()
23:47:03 Reply: {"result":[{"msg_ver":2,"msg_seq":2465,"state":8,"battery":100,"clean_time":2128,"clean_area":36377500,"error_code":0,"map_present":1,"in_cleaning":0,"fan_power":100,"dnd_enabled":1}],"id":92044230}
23:47:03 Background processing of the response is started
23:47:03 Queue command: {"ID":"245087","DEVICE_ID":"4","METHOD":"get_consumable","DATA":"[]","ADDED":"2018-10-10 23:47:01","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92044231,"method":"get_consumable","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6547 --> 1539204423 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:47:03
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe6547 --> 1539204423 seconds --> 2018-10-10 23:47:03
timediff: 0

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6547 --> 1539204423 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:47:03
checksum: 
data: 8256e63ab70dbcd70052298a37d670a73dfe3746d81f8a2ece04b5e9e0d312a429e7ad854c002cb4b1b0d0cd7296df99bccbbeb1b60901096a1ce64c33784200
ts_server: 5bbe6547 --> 1539204423 seconds --> 2018-10-10 23:47:03
timediff: 0
 >>>>> Sent 96 bytes to socket
 <<<<< Reply from IP 10.0.1.76 , port 54321
Read 176 bytes from socket
magic: 2131
length: 00b0 --> 176 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6547 --> 1539204423 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:47:03
checksum: 
data: 1175e9aa68a1a0bb8c61d4ebb9fc2848b0ed20932c0a3911db6b0126263a42378e6beb2f37075fdd01a8098297bddc091cb2188b24be4314f4a770c7c2bc6f2a563dcdc8b87ccb087b9be37f23acf338c5ecbe4fefa6833b13ca97682207c948d9ba1cac86648630834c786f7b0d4c228fad761f2af600bffaa49c5ddcf99635ef3dc0d116b7590793156b1bd669967e
Data decrypted: {"result":[{"main_brush_work_time":54095,"side_brush_work_time":54095,"filter_work_time":54095,"sensor_dirty_time":54095}],"id":92044231}
Invalid JSON data. Error: Control character error, possibly incorrectly encoded
Executing trim()
23:47:03 Reply: {"result":[{"main_brush_work_time":54095,"side_brush_work_time":54095,"filter_work_time":54095,"sensor_dirty_time":54095}],"id":92044231}
23:47:03 Background processing of the response is started
23:47:03 Queue command: {"ID":"245088","DEVICE_ID":"4","METHOD":"get_custom_mode","DATA":"[]","ADDED":"2018-10-10 23:47:02","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92044232,"method":"get_custom_mode","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6547 --> 1539204423 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:47:03
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe6547 --> 1539204423 seconds --> 2018-10-10 23:47:03
timediff: 0

Device 10.0.1.76 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.76 with timeout 2
magic: 2131
length: 0060 --> 96 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6547 --> 1539204423 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:47:03
checksum: 
data: 696efc024be67c0869173b9ba6fcab018f0886b8e913670b00cd4fba560ebfd7f880b8e6e388fc6d9503c87e8039ff929c2d1c52490431c9cabdd0cd739f927b
ts_server: 5bbe6547 --> 1539204423 seconds --> 2018-10-10 23:47:03
timediff: 0
 >>>>> Sent 96 bytes to socket
 <<<<< Reply from IP 10.0.1.76 , port 54321
Read 64 bytes from socket
magic: 2131
length: 0040 --> 64 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6547 --> 1539204423 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:47:03
checksum: 
data: 2b44ac1e98b6565c719afbfe9dfc40fce15c7a06a238c55aee87d0ab9c0d20b0
Data decrypted: {"result":[100],"id":92044232}
Invalid JSON data. Error: Control character error, possibly incorrectly encoded
Executing trim()
23:47:03 Reply: {"result":[100],"id":92044232}
23:47:03 Background processing of the response is started
23:47:59 Request to update the properties of the device 10.0.1.46
23:48:00 Queue command: {"ID":"245089","DEVICE_ID":"3","METHOD":"get_prop","DATA":"[\"power\",\"aqi\",\"average_aqi\",\"humidity\",\"temp_dec\",\"bright\",\"mode\",\"favorite_level\",\"filter1_life\",\"use_time\",\"purify_volume\",\"led\",\"buzzer\",\"child_lock\"]","ADDED":"2018-10-10 23:47:59","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"zhimi.airpurifier.ma2","IP":"10.0.1.46"}
Command to send - {"id":92044800,"method":"get_prop","params":["power","aqi","average_aqi","humidity","temp_dec","bright","mode","favorite_level","filter1_life","use_time","purify_volume","led","buzzer","child_lock"]}

Checking device status by 10.0.1.46
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.46 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.46 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 02d1
serial: 6ddc
ts: 000846c7 --> 542407 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:40:07
checksum: –ú–æ–π —Ç–æ–∫–µ–Ω
ts_server: 5bbe6581 --> 1539204481 seconds --> 2018-10-10 23:48:01
timediff: -1538662074

Device 10.0.1.46 available
Timeout SO_RCVTIMEO successfully set
Using manually set token - –ú–æ–π —Ç–æ–∫–µ–Ω
 >>>>> Sending packet to 10.0.1.46 with timeout 2
magic: 2131
length: 00f0 --> 240 –±–∞–π—Ç
unknown1: 00000000
devicetype: 02d1
serial: 6ddc
ts: 000846c7 --> 542407 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:40:07
checksum: 
data: 4a41c5194df18ecfb5a58151703bd42457b1b8a7bd7e7b97ca6536f50bf0d99d1caaf86901f49fd1902d639a579c3d051576f47b74038d0f692021c6d2b4ffe4329d68467c2df3efd6e83f3beab08e526db79fb10174f01e3d811f5b5cf5d916a6e500faf03041e996f3cea25e28ada55c9729e2c63a8b6c349a56cc16bb31ecda61b26d643f1d91d1ebf23a6b48c22db3141c08758ae592a9a7c8e62d3a2a16cc26b04660c4bddc9a4ebfd8e552ffb9b8e30d19e31efda86e7f0292c3fc7262f9ac128a91b45f42a785d6181f9bad16
ts_server: 5bbe6581 --> 1539204481 seconds --> 2018-10-10 23:48:01
timediff: -1538662074
 >>>>> Sent 240 bytes to socket
 <<<<< Reply from IP 10.0.1.46 , port 54321
Read 128 bytes from socket
magic: 2131
length: 0080 --> 128 –±–∞–π—Ç
unknown1: 00000000
devicetype: 02d1
serial: 6ddc
ts: 000846c7 --> 542407 —Å–µ–∫—É–Ω–¥ --> 1970-01-07 09:40:07
checksum: 
data: b16ce87870ae9e34dad1aaab7f4ac7145cfc34a153e2c0f77324fcaeb99fec9bbd3546f87d320b27749ad2bd1387dce75109751782ef08497efef210f33f1cdf395fffe75f4e60e91c5de04459938f742b1f15ee9c4d567f8f073484d68e51cb
Data decrypted: {"result":["off",32,8,58,232,null,"idle",10,98,118800,3608,"on","on","off"],"id":92044800}
JSON data is vaild.
23:48:01 Reply: {"result":["off",32,8,58,232,null,"idle",10,98,118800,3608,"on","on","off"],"id":92044800}
23:48:01 Background processing of the response is started
23:48:01 Request to update the properties of the device 10.0.1.76
23:48:04 Queue command: {"ID":"245090","DEVICE_ID":"4","METHOD":"get_status","DATA":"[]","ADDED":"2018-10-10 23:48:01","TOKEN":"–ú–æ–π —Ç–æ–∫–µ–Ω","DEVICE_TYPE":"roborock.vacuum.s5","IP":"10.0.1.76"}
Command to send - {"id":92044840,"method":"get_status","params":[]}

Checking device status by 10.0.1.76
Timeout SO_RCVTIMEO successfully set
 >>>>> Sending hello-packet to 10.0.1.76 with timeout 2
 >>>>> Sent 32 bytes to socket
 <<<<< Reply received from IP 10.0.1.76 , port 54321
32 bytes received
magic: 2131
length: 0020 --> 32 –±–∞–π—Ç
unknown1: 00000000
devicetype: 05bf
serial: d1a5
ts: 5bbe6583 --> 1539204483 —Å–µ–∫—É–Ω–¥ --> 2018-10-10 23:48:03
checksum: ffffffffffffffffffffffffffffffff
ts_server: 5bbe6584 --> 1539204484 seconds --> 2018-10-10 23:48:04
timediff: -1




ASUS H110T, I5 7500, DDR4-16Gb, SSD256 . WIN10 64 (LTSB)
Аватара пользователя
igorewa
Сообщения: 515
Зарегистрирован: Ср дек 21, 2016 11:54 pm
Откуда: Киев
Благодарил (а): 12 раз
Поблагодарили: 43 раза

Re: [Модуль] Xiaomi miIO

Сообщение igorewa » Чт окт 11, 2018 12:00 am

2018-10-10_xiaomimiio
СпойлерПоказать

Код: Выделить всё

23:41:12 0.08089200 Starting periodic search for devices in the network
23:41:12 0.08259700 Run miIO-discover command
23:41:22 0.11589700 End miIO-discover command
23:41:22 0.11604300 Reply = {"devices":["{\"devicetype\":\"05bf\",\"serial\":\"d1a5\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"10.0.1.76\"}","{\"devicetype\":\"02d1\",\"serial\":\"6ddc\",\"token\":\"Мой токен\",\"ip\":\"10.0.1.46\"}"]}
23:41:22 0.11640400 Current count of devices 2
23:41:22 0.11672700 Update the ip address and the token for the device 10.0.1.76
23:41:22 0.11750600 Update the ip address and the token for the device 10.0.1.46
23:41:22 0.11796700 Current count of offline devices 0
23:41:22 0.11850200 Periodic search for devices in the network is finished
23:42:02 0.45812500 Incoming message from 3 (get_prop): {"result":["off",30,8,58,233,null,"idle",10,98,118800,3608,"on","on","off"],"id":92041220}
23:42:04 0.51447100 Incoming message from 4 (get_status): {"error":"Device not answered"}
23:42:06 0.60027500 Incoming message from 4 (get_consumable): {"error":"Device not answered"}
23:42:08 0.62299300 Incoming message from 4 (get_custom_mode): {"error":"Device not answered"}
23:43:03 0.07163100 Incoming message from 4 (get_status): {"result":[{"msg_ver":2,"msg_seq":2456,"state":8,"battery":100,"clean_time":2128,"clean_area":36377500,"error_code":0,"map_present":1,"in_cleaning":0,"fan_power":100,"dnd_enabled":1}],"id":92041830}
23:43:03 0.15520100 Incoming message from 4 (get_consumable): {"result":[{"main_brush_work_time":54095,"side_brush_work_time":54095,"filter_work_time":54095,"sensor_dirty_time":54095}],"id":92041831}
23:43:03 0.23331000 Incoming message from 4 (get_custom_mode): {"result":[100],"id":92041832}
23:43:12 0.36066900 Starting periodic search for devices in the network
23:43:12 0.36221200 Run miIO-discover command
23:43:22 0.38941000 End miIO-discover command
23:43:22 0.38955500 Reply = {"devices":["{\"devicetype\":\"05bf\",\"serial\":\"d1a5\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"10.0.1.76\"}","{\"devicetype\":\"02d1\",\"serial\":\"6ddc\",\"token\":\"Мой токен\",\"ip\":\"10.0.1.46\"}"]}
23:43:22 0.38991900 Current count of devices 2
23:43:22 0.39023400 Update the ip address and the token for the device 10.0.1.76
23:43:22 0.39101900 Update the ip address and the token for the device 10.0.1.46
23:43:22 0.39160200 Current count of offline devices 0
23:43:22 0.39172300 Periodic search for devices in the network is finished
23:44:00 0.80278400 Incoming message from 3 (get_prop): {"result":["off",30,8,58,233,null,"idle",10,98,118800,3608,"on","on","off"],"id":92042400}
23:44:05 0.84051800 Incoming message from 4 (get_status): {"error":"Device not answered"}
23:44:07 0.87552100 Incoming message from 4 (get_consumable): {"error":"Device not answered"}
23:44:09 0.92084700 Incoming message from 4 (get_custom_mode): {"error":"Device not answered"}
23:45:05 0.38909700 Incoming message from 4 (get_status): {"error":"Device not answered"}
23:45:07 0.41499900 Incoming message from 4 (get_consumable): {"error":"Device not answered"}
23:45:09 0.49498900 Incoming message from 4 (get_custom_mode): {"error":"Device not answered"}
23:45:12 0.56496400 Starting periodic search for devices in the network
23:45:12 0.56618900 Run miIO-discover command
23:45:22 0.60605300 End miIO-discover command
23:45:22 0.60627300 Reply = {"devices":["{\"devicetype\":\"05bf\",\"serial\":\"d1a5\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"10.0.1.76\"}","{\"devicetype\":\"02d1\",\"serial\":\"6ddc\",\"token\":\"Мой токен\",\"ip\":\"10.0.1.46\"}"]}
23:45:22 0.60679500 Current count of devices 2
23:45:22 0.60719500 Update the ip address and the token for the device 10.0.1.76
23:45:22 0.61460400 Update the ip address and the token for the device 10.0.1.46
23:45:22 0.61504900 Current count of offline devices 0
23:45:22 0.61520900 Periodic search for devices in the network is finished
23:46:00 0.94642900 Incoming message from 3 (get_prop): {"result":["off",23,8,58,232,null,"idle",10,98,118800,3608,"on","on","off"],"id":92043600}
23:46:06 0.01275200 Incoming message from 4 (get_status): {"error":"Device not answered"}
23:46:06 0.07212100 Incoming message from 4 (get_consumable): {"result":[{"main_brush_work_time":54095,"side_brush_work_time":54095,"filter_work_time":54095,"sensor_dirty_time":54095}],"id":92043661}
23:46:06 0.18828200 Incoming message from 4 (get_custom_mode): {"result":[100],"id":92043662}
23:46:56 0.41649400 Starting periodic search for devices in the network
23:46:56 0.41773600 Run miIO-discover command
23:47:03 0.47544400 Incoming message from 4 (get_status): {"result":[{"msg_ver":2,"msg_seq":2465,"state":8,"battery":100,"clean_time":2128,"clean_area":36377500,"error_code":0,"map_present":1,"in_cleaning":0,"fan_power":100,"dnd_enabled":1}],"id":92044230}
23:47:03 0.52919500 Incoming message from 4 (get_consumable): {"result":[{"main_brush_work_time":54095,"side_brush_work_time":54095,"filter_work_time":54095,"sensor_dirty_time":54095}],"id":92044231}
23:47:03 0.59167800 Incoming message from 4 (get_custom_mode): {"result":[100],"id":92044232}
23:47:06 0.44498700 End miIO-discover command
23:47:06 0.44515400 Reply = {"devices":["{\"devicetype\":\"05bf\",\"serial\":\"d1a5\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"10.0.1.76\"}","{\"devicetype\":\"02d1\",\"serial\":\"6ddc\",\"token\":\"Мой токен\",\"ip\":\"10.0.1.46\"}"]}
23:47:06 0.44549200 Current count of devices 2
23:47:06 0.44578600 Update the ip address and the token for the device 10.0.1.76
23:47:06 0.44658700 Update the ip address and the token for the device 10.0.1.46
23:47:06 0.44733900 Current count of offline devices 0
23:47:06 0.44750900 Periodic search for devices in the network is finished
23:48:01 0.05455600 Incoming message from 3 (get_prop): {"result":["off",32,8,58,232,null,"idle",10,98,118800,3608,"on","on","off"],"id":92044800}
23:48:04 0.13115700 Incoming message from 4 (get_status): {"result":[{"msg_ver":2,"msg_seq":2468,"state":8,"battery":100,"clean_time":2128,"clean_area":36377500,"error_code":0,"map_present":1,"in_cleaning":0,"fan_power":100,"dnd_enabled":1}],"id":92044840}
23:48:04 0.21782500 Incoming message from 4 (get_consumable): {"result":[{"main_brush_work_time":54095,"side_brush_work_time":54095,"filter_work_time":54095,"sensor_dirty_time":54095}],"id":92044841}
23:48:04 0.28385100 Incoming message from 4 (get_custom_mode): {"result":[100],"id":92044842}
23:49:04 0.85993200 Incoming message from 4 (get_status): {"result":[{"msg_ver":2,"msg_seq":2471,"state":8,"battery":100,"clean_time":2128,"clean_area":36377500,"error_code":0,"map_present":1,"in_cleaning":0,"fan_power":100,"dnd_enabled":1}],"id":92045440}
23:49:04 0.91440900 Incoming message from 4 (get_consumable): {"result":[{"main_brush_work_time":54095,"side_brush_work_time":54095,"filter_work_time":54095,"sensor_dirty_time":54095}],"id":92045441}
23:49:04 0.96136700 Incoming message from 4 (get_custom_mode): {"result":[100],"id":92045442}
23:49:56 0.49722800 Starting periodic search for devices in the network
23:49:56 0.49853700 Run miIO-discover command
23:50:06 0.52440400 End miIO-discover command
23:50:06 0.52478200 Reply = {"devices":["{\"devicetype\":\"02d1\",\"serial\":\"6ddc\",\"token\":\"Мой токен\",\"ip\":\"10.0.1.46\"}"]}
23:50:06 0.52516000 Current count of devices 2
23:50:06 0.52545900 Update the ip address and the token for the device 10.0.1.46
23:50:06 0.52594900 Current count of offline devices 1
23:50:06 0.52607800 Device 10.0.1.76 is offline
23:50:06 0.53442600 Periodic search for devices in the network is finished
23:50:06 0.54203900 Incoming message from 3 (get_prop): {"result":["off",22,8,58,232,null,"idle",10,98,118800,3608,"on","on","off"],"id":92046000}
23:50:06 0.96970300 Incoming message from 4 (get_status): {"error":"Device not answered"}
23:50:08 0.99511800 Incoming message from 4 (get_consumable): {"error":"Device not answered"}
23:50:09 0.06493500 Incoming message from 4 (get_custom_mode): {"result":[100],"id":92046082}
23:51:04 0.52234700 Incoming message from 4 (get_status): {"result":[{"msg_ver":2,"msg_seq":2476,"state":8,"battery":100,"clean_time":2128,"clean_area":36377500,"error_code":0,"map_present":1,"in_cleaning":0,"fan_power":100,"dnd_enabled":1}],"id":92046640}
23:51:04 0.56773000 Incoming message from 4 (get_consumable): {"result":[{"main_brush_work_time":54095,"side_brush_work_time":54095,"filter_work_time":54095,"sensor_dirty_time":54095}],"id":92046641}
23:51:04 0.63136500 Incoming message from 4 (get_custom_mode): {"result":[100],"id":92046642}
23:52:00 0.60142000 Incoming message from 3 (get_prop): {"result":["off",31,8,58,232,null,"idle",10,98,118800,3608,"on","on","off"],"id":92047200}
23:52:06 0.73813000 Incoming message from 4 (get_status): {"error":"Device not answered"}
23:52:08 0.87069700 Incoming message from 4 (get_consumable): {"error":"Device not answered"}
23:52:10 0.95715800 Incoming message from 4 (get_custom_mode): {"error":"Device not answered"}
23:52:56 0.32277200 Starting periodic search for devices in the network
23:52:56 0.32423000 Run miIO-discover command
23:53:06 0.35534200 End miIO-discover command
23:53:06 0.35548800 Reply = {"devices":["{\"devicetype\":\"02d1\",\"serial\":\"6ddc\",\"token\":\"Мой токен\",\"ip\":\"10.0.1.46\"}"]}
23:53:06 0.35586600 Current count of devices 2
23:53:06 0.35616400 Update the ip address and the token for the device 10.0.1.46
23:53:06 0.35666300 Current count of offline devices 1
23:53:06 0.35678600 Device 10.0.1.76 is offline
23:53:06 0.35719000 Periodic search for devices in the network is finished
23:53:06 0.38026700 Incoming message from 4 (get_status): {"error":"Device not answered"}
23:53:08 0.41103000 Incoming message from 4 (get_consumable): {"error":"Device not answered"}
23:53:10 0.46180700 Incoming message from 4 (get_custom_mode): {"error":"Device not answered"}
ASUS H110T, I5 7500, DDR4-16Gb, SSD256 . WIN10 64 (LTSB)
skysilver
Сообщения: 3006
Зарегистрирован: Чт авг 21, 2014 8:28 am
Откуда: Киров, Россия
Благодарил (а): 400 раз
Поблагодарили: 1753 раза
Контактная информация:

Re: [Модуль] Xiaomi miIO

Сообщение skysilver » Чт окт 11, 2018 9:33 am

igorewa писал(а):
Чт окт 11, 2018 12:00 am
log_2018-10-10-cycle_xiaomimiio
А попробуй в файле modules/xiaomimiio/lib/miio.class.php в строке 30 $send_timeout выставить не 2, а, допустим, 5.
MajorDoMo (GitHub) на Cubietruck. ОС Debian 7 (wheezy) (kernel 3.4.105) с переносом на HDD.
Мой CONNECT | Блоги | Telegram
Аватара пользователя
igorewa
Сообщения: 515
Зарегистрирован: Ср дек 21, 2016 11:54 pm
Откуда: Киев
Благодарил (а): 12 раз
Поблагодарили: 43 раза

Re: [Модуль] Xiaomi miIO

Сообщение igorewa » Чт окт 11, 2018 12:35 pm

skysilver писал(а):
Чт окт 11, 2018 9:33 am
igorewa писал(а):
Чт окт 11, 2018 12:00 am
log_2018-10-10-cycle_xiaomimiio
А попробуй в файле modules/xiaomimiio/lib/miio.class.php в строке 30 $send_timeout выставить не 2, а, допустим, 5.
Поменял, прошло 2,5 часа пылесос ни разу не ушел в офлайн.
ASUS H110T, I5 7500, DDR4-16Gb, SSD256 . WIN10 64 (LTSB)
dksobol
Сообщения: 53
Зарегистрирован: Вт июл 24, 2018 12:01 pm
Благодарил (а): 6 раз
Поблагодарили: 1 раз

Re: [Модуль] Xiaomi miIO

Сообщение dksobol » Чт окт 11, 2018 1:16 pm

Я пойду пака по другому пути. Расставил на оборудование время опроса. Попробую пока так. Если не поможет значит вариант выше.
Вложения
2018-10-11_13-14-29.png
2018-10-11_13-14-29.png (34.74 КБ) 3542 просмотра
Аватара пользователя
igorewa
Сообщения: 515
Зарегистрирован: Ср дек 21, 2016 11:54 pm
Откуда: Киев
Благодарил (а): 12 раз
Поблагодарили: 43 раза

Re: [Модуль] Xiaomi miIO

Сообщение igorewa » Чт окт 11, 2018 2:02 pm

dksobol писал(а):
Чт окт 11, 2018 1:16 pm
Я пойду пака по другому пути. Расставил на оборудование время опроса. Попробую пока так. Если не поможет значит вариант выше.
Может токены не стоит выставлять на всеобщее обозрение?
ASUS H110T, I5 7500, DDR4-16Gb, SSD256 . WIN10 64 (LTSB)
skysilver
Сообщения: 3006
Зарегистрирован: Чт авг 21, 2014 8:28 am
Откуда: Киров, Россия
Благодарил (а): 400 раз
Поблагодарили: 1753 раза
Контактная информация:

Re: [Модуль] Xiaomi miIO

Сообщение skysilver » Чт окт 11, 2018 2:32 pm

igorewa писал(а):
Чт окт 11, 2018 2:02 pm
Может токены не стоит выставлять на всеобщее обозрение?
Они только внутри домашней сети актуальны. Из инета они бесполезны.
За это сообщение автора skysilver поблагодарил:
dksobol (Пт окт 12, 2018 8:24 pm)
Рейтинг: 1.16%
MajorDoMo (GitHub) на Cubietruck. ОС Debian 7 (wheezy) (kernel 3.4.105) с переносом на HDD.
Мой CONNECT | Блоги | Telegram
Ответить