skysilver писал(а): ↑Чт май 07, 2020 9:51 am
max506 писал(а): ↑Чт май 07, 2020 9:28 am
Может, какие-то настройки опроса устройств изменить надо?
Включите в настройках модуля "Отладка DebMes" и скиньте лог.
Присоединяю выборку из двух последних периодических автопоисков и двух ручных поисков лога DebMes
11:09:09 0.84208600 Starting periodic search for devices in the network
11:09:09 0.84265200 Run miIO-discover command
11:09:20 0.02658200 End miIO-discover command
11:09:20 0.02676100 Reply = {"devices":["{\"devicetype\":\"129d\",\"serial\":\"9f3a\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.111\"}","{\"devicetype\":\"12c0\",\"serial\":\"7d9e\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.101\"}","{\"devicetype\":\"126d\",\"serial\":\"66c7\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.187\"}","{\"devicetype\":\"10d4\",\"serial\":\"cc3f\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.171\"}"]}
11:09:20 0.02720400 Current count of devices 6
11:09:20 0.02752900 Update the ip address and the token for the device 172.16.0.111
11:09:20 0.17112300 Update the ip address and the token for the device 172.16.0.101
11:09:20 0.30112500 Update the ip address and the token for the device 172.16.0.187
11:09:20 0.50453100 Update the ip address and the token for the device 172.16.0.171
11:09:20 0.59306600 Current count of offline devices 2
11:09:20 0.59336900 Device 172.16.0.153 is offline
11:09:20 0.63748300 Device 172.16.0.155 is offline
11:09:20 0.68204500 Periodic search for devices in the network is finished
11:11:09 0.15405300 Starting periodic search for devices in the network
11:11:09 0.16813500 Run miIO-discover command
11:11:19 0.32260600 End miIO-discover command
11:11:19 0.32277900 Reply = {"devices":["{\"devicetype\":\"10d4\",\"serial\":\"cc3f\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.171\"}","{\"devicetype\":\"12c0\",\"serial\":\"7d9e\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.101\"}","{\"devicetype\":\"126d\",\"serial\":\"66c7\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.187\"}","{\"devicetype\":\"129d\",\"serial\":\"9f3a\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.111\"}","{\"devicetype\":\"12bf\",\"serial\":\"7fc4\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.155\"}"]}
11:11:19 0.32325900 Current count of devices 6
11:11:19 0.32367700 Update the ip address and the token for the device 172.16.0.171
11:11:19 0.45381800 Update the ip address and the token for the device 172.16.0.101
11:11:19 0.56494500 Update the ip address and the token for the device 172.16.0.187
11:11:19 0.67656100 Update the ip address and the token for the device 172.16.0.111
11:11:19 0.78721500 Update the ip address and the token for the device 172.16.0.155
11:11:19 0.89812000 Current count of offline devices 1
11:11:19 0.89828700 Device 172.16.0.153 is offline
11:11:19 0.95367600 Periodic search for devices in the network is finished
11:11:35 0.72739400 Starting manual search for devices in the network
11:11:35 0.72785700 Run miIO-discover command
11:11:45 0.94662200 End miIO-discover command
11:11:45 0.94682300 Reply = {"devices":["{\"devicetype\":\"075c\",\"serial\":\"bd24\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.153\"}","{\"devicetype\":\"129d\",\"serial\":\"9f3a\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.111\"}","{\"devicetype\":\"126d\",\"serial\":\"66c7\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.187\"}","{\"devicetype\":\"12c0\",\"serial\":\"7d9e\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.101\"}","{\"devicetype\":\"10d4\",\"serial\":\"cc3f\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.171\"}"]}
11:11:45 0.94725700 Current count of devices 6
11:11:45 0.94757000 Update the ip address and the token for the device 172.16.0.153
11:11:46 0.08718600 Update the ip address and the token for the device 172.16.0.111
11:11:46 0.19729200 Update the ip address and the token for the device 172.16.0.187
11:11:46 0.30809200 Update the ip address and the token for the device 172.16.0.101
11:11:46 0.41915600 Update the ip address and the token for the device 172.16.0.171
11:11:46 0.53021200 Current count of offline devices 1
11:11:46 0.53042300 Device 172.16.0.155 is offline
11:11:46 0.58575000 Manual search for devices in the network is finished
11:11:55 0.74003100 Starting manual search for devices in the network
11:11:55 0.74067200 Run miIO-discover command
11:12:05 0.91459100 End miIO-discover command
11:12:05 0.91475600 Reply = {"devices":["{\"devicetype\":\"126d\",\"serial\":\"66c7\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.187\"}","{\"devicetype\":\"12c0\",\"serial\":\"7d9e\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.101\"}","{\"devicetype\":\"10d4\",\"serial\":\"cc3f\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.171\"}","{\"devicetype\":\"129d\",\"serial\":\"9f3a\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.111\"}","{\"devicetype\":\"12bf\",\"serial\":\"7fc4\",\"token\":\"ffffffffffffffffffffffffffffffff\",\"ip\":\"172.16.0.155\"}"]}
11:12:05 0.91520400 Current count of devices 6
11:12:05 0.91550500 Update the ip address and the token for the device 172.16.0.187
11:12:06 0.02942500 Update the ip address and the token for the device 172.16.0.101
11:12:06 0.11942800 Update the ip address and the token for the device 172.16.0.171
11:12:06 0.21926700 Update the ip address and the token for the device 172.16.0.111
11:12:06 0.32930000 Update the ip address and the token for the device 172.16.0.155
11:12:06 0.46251600 Current count of offline devices 1
11:12:06 0.46267900 Device 172.16.0.153 is offline
11:12:06 0.52924900 Manual search for devices in the network is finished
Как видно, в каждом случае в offline оказываются разные устройства.
При этом в сети все они пингуются и через сетевые приложения MiHome и Yeelight управляются.
В чем же может быть проблема в моем случае?
Обнаружил еще одну интересную особенность. Устройство всегда переходит в online, если открыть редактирование его настроек и нажать Сохранить. Возможно, это поможет понять причину сваливания устройства в offline.