AlexxIT / XiaomiGateway3

Home Assistant custom component for control Xiaomi Multimode Gateway (aka Gateway 3), Xiaomi Multimode Gateway 2, Aqara Hub E1 on default firmwares over LAN
https://github.com/AlexxIT/Blog
MIT License
2.45k stars 342 forks source link

Can't prepare gateway Device offline #737

Closed simple4wan closed 1 year ago

simple4wan commented 2 years ago

System Health

version core-2022.4.6
installation_type Unsupported Third Party Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.9.5
os_name Linux
os_version 5.13.19-6-pve
arch x86_64
timezone Asia/Shanghai

XiaomiGateway3 Version: 2.0.9

Home Asssistant Error Log

此错误来自自定义集成。

Logger: custom_components.xiaomi_gateway3.core.gateway
Source: custom_components/xiaomi_gateway3/core/shell/__init__.py:30
Integration: Xiaomi Gateway 3 (documentation, issues)
First occurred: 10:13:29 (2 occurrences)
Last logged: 10:14:36

192.168.1.212 | Can't prepare gateway
192.168.1.212 | Can't update gateway stats
Traceback (most recent call last):
  File "/usr/lib/python3.9/asyncio/streams.py", line 632, in readuntil
    await self._wait_for_data('readuntil')
  File "/usr/lib/python3.9/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/asyncio/tasks.py", line 492, in wait_for
    fut.result()
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/xiaomi_gateway3/core/gateway/__init__.py", line 162, in prepare_gateway
    sh = await shell.connect(self.host)
  File "/config/custom_components/xiaomi_gateway3/core/shell/__init__.py", line 30, in connect
    resp: bytes = await asyncio.wait_for(coro, 3)
  File "/usr/lib/python3.9/asyncio/tasks.py", line 494, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

XiaomiGateway3 Debug Log

2022-04-22 10:25:57  DEBUG    main          SysInfo: {'installation_type': 'Unsupported Third Party Container', 'version': '2022.4.6', 'dev': False, 'hassio': False, 'virtualenv': False, 'python_version': '3.9.5', 'docker': True, 'arch': 'x86_64', 'timezone': 'Asia/Shanghai', 'os_name': 'Linux', 'os_version': '5.13.19-6-pve', 'user': 'root'}
2022-04-22 10:25:57  DEBUG    base          192.168.1.212 [BASE] Start main loop
2022-04-22 10:26:00  ERROR    base          192.168.1.212 | Can't prepare gateway
2022-04-22 10:27:01  DEBUG    base          192.168.1.212 [BASE] Prepare gateway gw3 with firmware 1.5.0_0102
2022-04-22 10:27:15  DEBUG    base          192.168.1.212 [BASE] 54ef4436ce73 (lumi.gateway.mgl03) setup gateway ZNDMWG03LM ZNDMWG02LM: alarm, command, data, cloud_link, led, gateway
2022-04-22 10:27:15  DEBUG    base          192.168.1.212 [MIOT] 54ef4436ce73 (lumi.gateway.mgl03) read {'mi_spec': [{'siid': 3, 'piid': 1}, {'siid': 3, 'piid': 22}]}
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 28d127345a4f (2076) setup mesh YLTS02YL/YLTS04YL: light, flex_switch, power_on_state
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 68abbc08ff9a (2076) setup mesh YLTS02YL/YLTS04YL: light, flex_switch, power_on_state
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 28d12733efdf (2076) setup mesh YLTS02YL/YLTS04YL: light, flex_switch, power_on_state
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 28d127343fe7 (2076) setup mesh YLTS02YL/YLTS04YL: light, flex_switch, power_on_state
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 28d12734aa89 (2076) setup mesh YLTS02YL/YLTS04YL: light, flex_switch, power_on_state
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] ec4d3ebd27e3 (4944) setup mesh (4944): switch
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 68abbc08f891 (2076) setup mesh YLTS02YL/YLTS04YL: light, flex_switch, power_on_state
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] ec4d3ed3899b (2076) setup mesh YLTS02YL/YLTS04YL: light, flex_switch, power_on_state
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 68abbc08b558 (2076) setup mesh YLTS02YL/YLTS04YL: light, flex_switch, power_on_state
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 68abbc07ff29 (2076) setup mesh YLTS02YL/YLTS04YL: light, flex_switch, power_on_state
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] b460ed92435d (2076) setup mesh YLTS02YL/YLTS04YL: light, flex_switch, power_on_state
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 68abbc07c4ef (2076) setup mesh YLTS02YL/YLTS04YL: light, flex_switch, power_on_state
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] d0931246fbc4 (3641) setup ble (3641): action, battery
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] a4c138cd3c0c (1371) setup ble LYWSD03MMC: temperature, humidity, battery
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] a4c1385e1943 (1371) setup ble LYWSD03MMC: temperature, humidity, battery
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] a4c1381f58e2 (1371) setup ble LYWSD03MMC: temperature, humidity, battery
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] a4c1386c5cc7 (1371) setup ble LYWSD03MMC: temperature, humidity, battery
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] a4c13832caf3 (1371) setup ble LYWSD03MMC: temperature, humidity, battery
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] a4c138fa10b5 (1371) setup ble LYWSD03MMC: temperature, humidity, battery
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] e4aaec46176b (2443) setup ble MCCGQ02HL: contact, light, battery
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] a4c138fdd285 (1371) setup ble LYWSD03MMC: temperature, humidity, battery
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 54ef44c2ffa2 (2701) setup ble RTCGQ02LM: motion, light, battery, action, idle_time
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] e4aaec4d2ad3 (2443) setup ble MCCGQ02HL: contact, light, battery
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] a4c138e7f547 (1371) setup ble LYWSD03MMC: temperature, humidity, battery
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 54ef44c0cea7 (2701) setup ble RTCGQ02LM: motion, light, battery, action, idle_time
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 582d3460dbaa (2691) setup ble CGPR1: motion, light, illuminance, battery, idle_time
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 54ef44c0af74 (2701) setup ble RTCGQ02LM: motion, light, battery, action, idle_time
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] Patch Bluetooth
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] Applied 0 patches to daemons
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] MQTT connected
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 68abbc08ff9a (2076) poll state light
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 28d12733efdf (2076) poll state light
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 28d12734aa89 (2076) poll state light
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [BASE] 68abbc07ff29 (2076) poll state light
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [MIOT] 68abbc08ff9a (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [MIOT] 28d12733efdf (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [MIOT] 28d12734aa89 (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:27:19  DEBUG    base          192.168.1.212 [MIOT] 68abbc07ff29 (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:27:29  DEBUG    base          192.168.1.212 [BLEF] a4c1386c5cc7 (1371) recv {'humidity': 57}
2022-04-22 10:27:42  DEBUG    base          192.168.1.212 [BASE] Gateway time offset: 0
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [BASE] 28d127345a4f (2076) poll state light
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [BASE] 28d127343fe7 (2076) poll state light
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [BASE] ec4d3ebd27e3 (4944) poll state switch
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [BASE] 68abbc08f891 (2076) poll state light
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [BASE] ec4d3ed3899b (2076) poll state light
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [BASE] 68abbc08b558 (2076) poll state light
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [BASE] b460ed92435d (2076) poll state light
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [BASE] 68abbc07c4ef (2076) poll state light
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [MIOT] 28d127345a4f (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [MIOT] 28d127343fe7 (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [MIOT] ec4d3ebd27e3 (4944) read {'mi_spec': [{'siid': 2, 'piid': 1}]}
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [MIOT] 68abbc08f891 (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [MIOT] ec4d3ed3899b (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [MIOT] 68abbc08b558 (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [MIOT] b460ed92435d (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:27:58  DEBUG    base          192.168.1.212 [MIOT] 68abbc07c4ef (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:28:07  WARNING  mini_miio     192.168.1.212 | Device offline
2022-04-22 10:28:07  WARNING  mini_miio     192.168.1.212 | Device offline
2022-04-22 10:28:07  WARNING  mini_miio     192.168.1.212 | Device offline
2022-04-22 10:28:07  WARNING  mini_miio     192.168.1.212 | Device offline
2022-04-22 10:28:07  WARNING  mini_miio     192.168.1.212 | Device offline
2022-04-22 10:28:10  DEBUG    base          192.168.1.212 [BLEF] a4c1385e1943 (1371) recv {'temperature': 21.7}
2022-04-22 10:28:30  DEBUG    base          192.168.1.212 [BLEF] a4c1386c5cc7 (1371) recv {'temperature': 23.0}
2022-04-22 10:29:27  DEBUG    base          192.168.1.212 [BLEF] a4c13832caf3 (1371) recv {'humidity': 61}
2022-04-22 10:30:26  DEBUG    base          192.168.1.212 [BLEF] a4c138e7f547 (1371) recv {'humidity': 61}
2022-04-22 10:30:26  DEBUG    base          192.168.1.212 [BLEF] a4c13832caf3 (1371) recv {'temperature': 22.2}
2022-04-22 10:30:34  DEBUG    base          192.168.1.212 [BLEF] 54ef44c2ffa2 (2701) recv {'light': True}
2022-04-22 10:30:47  DEBUG    base          192.168.1.212 [BLEF] a4c138cd3c0c (1371) recv {'battery': 100}
2022-04-22 10:31:16  DEBUG    base          192.168.1.212 [BLEF] a4c138fdd285 (1371) recv {'battery': 100}
2022-04-22 10:31:20  DEBUG    base          192.168.1.212 [BLEF] a4c138e7f547 (1371) recv {'temperature': 23.6}
2022-04-22 10:31:46  DEBUG    base          192.168.1.212 [BLEF] a4c138cd3c0c (1371) recv {'humidity': 58}
2022-04-22 10:32:31  WARNING  base          192.168.1.212 | Can't update gateway stats
2022-04-22 10:32:40  DEBUG    base          192.168.1.212 [BASE] Gateway time offset: -1.4808974266052246
2022-04-22 10:32:47  DEBUG    base          192.168.1.212 [BLEF] a4c138cd3c0c (1371) recv {'temperature': 22.9}
2022-04-22 10:34:15  DEBUG    base          192.168.1.212 [BLEF] a4c138fdd285 (1371) recv {'humidity': 61}
2022-04-22 10:34:27  DEBUG    base          192.168.1.212 [BLEF] 582d3460dbaa (2691) recv {'battery': 100}
2022-04-22 10:34:28  DEBUG    base          192.168.1.212 [BLEF] 582d3460dbaa (2691) recv {'illuminance': 84}
2022-04-22 10:35:04  DEBUG    base          192.168.1.212 [BLEF] 54ef44c2ffa2 (2701) recv {'light': True}
2022-04-22 10:35:15  DEBUG    base          192.168.1.212 [BLEF] a4c138fdd285 (1371) recv {'temperature': 22.2}
2022-04-22 10:35:59  DEBUG    base          192.168.1.212 [BLEF] a4c1381f58e2 (1371) recv {'humidity': 59}
2022-04-22 10:36:17  DEBUG    base          192.168.1.212 [BLEF] a4c138fa10b5 (1371) recv {'humidity': 55}
2022-04-22 10:36:31  DEBUG    base          192.168.1.212 [BASE] 68abbc08ff9a (2076) poll state light
2022-04-22 10:36:31  DEBUG    base          192.168.1.212 [BASE] 28d12733efdf (2076) poll state light
2022-04-22 10:36:31  DEBUG    base          192.168.1.212 [BASE] 28d12734aa89 (2076) poll state light
2022-04-22 10:36:31  DEBUG    base          192.168.1.212 [BASE] 68abbc07ff29 (2076) poll state light
2022-04-22 10:36:31  DEBUG    base          192.168.1.212 [MIOT] 68abbc08ff9a (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:36:31  DEBUG    base          192.168.1.212 [MIOT] 28d12733efdf (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:36:31  DEBUG    base          192.168.1.212 [MIOT] 28d12734aa89 (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:36:31  DEBUG    base          192.168.1.212 [MIOT] 68abbc07ff29 (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:36:40  WARNING  mini_miio     192.168.1.212 | Device offline
2022-04-22 10:36:40  WARNING  mini_miio     192.168.1.212 | Device offline
2022-04-22 10:37:00  DEBUG    base          192.168.1.212 [BLEF] a4c1381f58e2 (1371) recv {'temperature': 22.4}
2022-04-22 10:37:01  DEBUG    base          192.168.1.212 [BASE] 28d127345a4f (2076) poll state light
2022-04-22 10:37:01  DEBUG    base          192.168.1.212 [BASE] ec4d3ebd27e3 (4944) poll state switch
2022-04-22 10:37:01  DEBUG    base          192.168.1.212 [BASE] 68abbc08f891 (2076) poll state light
2022-04-22 10:37:01  DEBUG    base          192.168.1.212 [BASE] ec4d3ed3899b (2076) poll state light
2022-04-22 10:37:01  DEBUG    base          192.168.1.212 [BASE] b460ed92435d (2076) poll state light
2022-04-22 10:37:01  DEBUG    base          192.168.1.212 [MIOT] 28d127345a4f (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:37:01  DEBUG    base          192.168.1.212 [MIOT] ec4d3ebd27e3 (4944) read {'mi_spec': [{'siid': 2, 'piid': 1}]}
2022-04-22 10:37:01  DEBUG    base          192.168.1.212 [MIOT] 68abbc08f891 (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:37:01  DEBUG    base          192.168.1.212 [MIOT] ec4d3ed3899b (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:37:01  DEBUG    base          192.168.1.212 [MIOT] b460ed92435d (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:37:18  DEBUG    base          192.168.1.212 [BLEF] a4c138fa10b5 (1371) recv {'temperature': 23.3}
2022-04-22 10:37:31  DEBUG    base          192.168.1.212 [BASE] 28d127343fe7 (2076) poll state light
2022-04-22 10:37:31  DEBUG    base          192.168.1.212 [BASE] 68abbc08b558 (2076) poll state light
2022-04-22 10:37:31  DEBUG    base          192.168.1.212 [BASE] 68abbc07c4ef (2076) poll state light
2022-04-22 10:37:31  DEBUG    base          192.168.1.212 [MIOT] 28d127343fe7 (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:37:31  DEBUG    base          192.168.1.212 [MIOT] 68abbc08b558 (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:37:31  DEBUG    base          192.168.1.212 [MIOT] 68abbc07c4ef (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:37:34  WARNING  base          192.168.1.212 | Can't update gateway stats
2022-04-22 10:37:40  DEBUG    base          192.168.1.212 [BASE] Gateway time offset: -1.3959577083587646
2022-04-22 10:37:45  DEBUG    base          192.168.1.212 [BLEF] a4c1385e1943 (1371) recv {'humidity': 64}
2022-04-22 10:38:19  DEBUG    base          192.168.1.212 [BLEF] a4c138e7f547 (1371) recv {'battery': 100}
2022-04-22 10:38:29  DEBUG    base          192.168.1.212 [BLEF] a4c1386c5cc7 (1371) recv {'humidity': 57}
2022-04-22 10:38:44  DEBUG    base          192.168.1.212 [BLEF] a4c1385e1943 (1371) recv {'temperature': 21.8}
2022-04-22 10:39:32  DEBUG    base          192.168.1.212 [BLEF] a4c13832caf3 (1371) recv {'battery': 100}
2022-04-22 10:39:32  DEBUG    base          192.168.1.212 [BLEF] a4c1386c5cc7 (1371) recv {'temperature': 23.0}
2022-04-22 10:39:34  DEBUG    base          192.168.1.212 [BLEF] 54ef44c2ffa2 (2701) recv {'light': True}
2022-04-22 10:39:59  DEBUG    base          192.168.1.212 [BLEF] a4c1381f58e2 (1371) recv {'battery': 100}
2022-04-22 10:40:16  DEBUG    base          192.168.1.212 [BLEF] a4c138fa10b5 (1371) recv {'battery': 100}
2022-04-22 10:40:35  DEBUG    base          192.168.1.212 [BLEF] a4c13832caf3 (1371) recv {'humidity': 61}
2022-04-22 10:41:20  DEBUG    base          192.168.1.212 [BLEF] a4c138e7f547 (1371) recv {'humidity': 61}
2022-04-22 10:41:30  DEBUG    base          192.168.1.212 [BLEF] a4c13832caf3 (1371) recv {'temperature': 22.2}
2022-04-22 10:41:30  DEBUG    base          192.168.1.212 [BLEF] a4c1386c5cc7 (1371) recv {'battery': 100}
2022-04-22 10:42:19  DEBUG    base          192.168.1.212 [BLEF] a4c138e7f547 (1371) recv {'temperature': 23.8}
2022-04-22 10:42:38  WARNING  base          192.168.1.212 | Can't update gateway stats
2022-04-22 10:42:40  DEBUG    base          192.168.1.212 [BASE] Gateway time offset: -7.396589040756226
2022-04-22 10:42:46  DEBUG    base          192.168.1.212 [BLEF] a4c138cd3c0c (1371) recv {'humidity': 58}
2022-04-22 10:43:47  DEBUG    base          192.168.1.212 [BLEF] a4c138cd3c0c (1371) recv {'temperature': 23.0}
2022-04-22 10:44:04  DEBUG    base          192.168.1.212 [BLEF] 54ef44c2ffa2 (2701) recv {'light': True}
2022-04-22 10:44:24  DEBUG    base          192.168.1.212 [LUMI] 54ef4436ce73 (lumi.gateway.mgl03) recv {'cloud_link': False}
2022-04-22 10:45:04  DEBUG    base          192.168.1.212 [LUMI] 54ef4436ce73 (lumi.gateway.mgl03) recv {'cloud_link': True}
2022-04-22 10:45:14  DEBUG    base          192.168.1.212 [BLEF] a4c138fdd285 (1371) recv {'humidity': 61}
2022-04-22 10:45:35  DEBUG    base          192.168.1.212 [BLEF] 582d3460dbaa (2691) recv {'battery': 100}
2022-04-22 10:45:35  DEBUG    base          192.168.1.212 [BLEF] 582d3460dbaa (2691) recv {'illuminance': 84}
2022-04-22 10:45:38  DEBUG    base          192.168.1.212 [BASE] 68abbc08ff9a (2076) poll state light
2022-04-22 10:45:38  DEBUG    base          192.168.1.212 [BASE] 28d12733efdf (2076) poll state light
2022-04-22 10:45:38  DEBUG    base          192.168.1.212 [BASE] 28d12734aa89 (2076) poll state light
2022-04-22 10:45:38  DEBUG    base          192.168.1.212 [BASE] 68abbc07ff29 (2076) poll state light
2022-04-22 10:45:38  DEBUG    base          192.168.1.212 [MIOT] 68abbc08ff9a (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:45:38  DEBUG    base          192.168.1.212 [MIOT] 28d12733efdf (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:45:38  DEBUG    base          192.168.1.212 [MIOT] 28d12734aa89 (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:45:38  DEBUG    base          192.168.1.212 [MIOT] 68abbc07ff29 (2076) read {'mi_spec': [{'siid': 2, 'piid': 1}, {'siid': 2, 'piid': 2}, {'siid': 2, 'piid': 3}]}
2022-04-22 10:45:45  DEBUG    base          192.168.1.212 [BLEF] a4c1385e1943 (1371) recv {'battery': 100}
AlexxIT commented 2 years ago

Try to reboot gateway

eratnik commented 1 year ago

Good day! I have the same problem. I tryed to reboot GW and change mode GW on ZHA and than return z2m. But this error returned again.

Logger: custom_components.xiaomi_gateway3.core.gateway
Source: custom_components/xiaomi_gateway3/core/shell/__init__.py:35
Integration: Xiaomi Gateway 3 ([documentation](https://github.com/AlexxIT/XiaomiGateway3), [issues](https://github.com/AlexxIT/XiaomiGateway3/issues))
First occurred: 5 ноября 2022 г., 12:03:10 (33 occurrences)
Last logged: 09:11:16

192.168.1.134 | Can't prepare gateway
192.168.1.134 | Can't update gateway stats
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/streams.py", line 617, in readuntil
    await self._wait_for_data('readuntil')
  File "/usr/local/lib/python3.10/asyncio/streams.py", line 502, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
    return fut.result()
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/xiaomi_gateway3/core/gateway/__init__.py", line 168, in prepare_gateway
    sh = await session.login()
  File "/config/custom_components/xiaomi_gateway3/core/shell/__init__.py", line 35, in login
    resp: bytes = await asyncio.wait_for(coro, 3)
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.10.5",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.5",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Minsk",
    "os_name": "Linux",
    "os_version": "5.15.74",
    "supervisor": "2022.10.2",
    "host_os": "Home Assistant OS 9.3",
    "docker_version": "20.10.18",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "xiaomi_gateway3": {
      "version": "2.1.2",
      "requirements": [
        "zigpy>=0.33.0"
      ]
    },
    "hass_agent_notifier": {
      "version": "2022.3.15",
      "requirements": []
    },
    "yandex_smart_home": {
      "version": "0.6.1",
      "requirements": []
    },
    "fontawesome": {
      "version": "2.1.5",
      "requirements": []
    },
    "hass_agent_mediaplayer": {
      "version": "2022.5.6",
      "requirements": []
    },
    "noolite": {
      "version": "0.2.2",
      "requirements": [
        "NooLite-F==0.1.3"
      ]
    },
    "yandex_weather": {
      "version": "1.2.2",
      "requirements": []
    },
    "hacs": {
      "version": "1.28.3",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    },
    "yandex_music_browser": {
      "version": "v0.0.8",
      "requirements": [
        "yandex-music==2.0.1"
      ]
    },
    "rhvoice": {
      "version": "1.3.1",
      "requirements": []
    },
    "morph_numbers": {
      "version": "1.3.0",
      "requirements": [
        "pymorphy2"
      ]
    },
    "smartthinq_sensors": {
      "version": "0.24.2",
      "requirements": [
        "pycountry>=20.7.3",
        "xmltodict>=0.12.0",
        "cchardet>=2.1.7"
      ]
    },
    "narodmon": {
      "version": "2.0.2",
      "requirements": []
    },
    "yandex_station_intents": {
      "version": "0.3.4",
      "requirements": []
    },
    "average": {
      "version": "2.3.0",
      "requirements": []
    },
    "yandex_station": {
      "version": "3.11.0",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "xiaomi_gateway3",
    "name": "Xiaomi Gateway 3",
    "config_flow": true,
    "documentation": "https://github.com/AlexxIT/XiaomiGateway3",
    "issue_tracker": "https://github.com/AlexxIT/XiaomiGateway3/issues",
    "codeowners": [
      "@AlexxIT"
    ],
    "dependencies": [
      "http"
    ],
    "requirements": [
      "zigpy>=0.33.0"
    ],
    "version": "2.1.2",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "4894b05",
    "options": {
      "host": "***",
      "token": "***",
      "telnet_cmd": "{\"method\":\"set_ip_info\",\"params\":{\"ssid\":\"\\\"\\\"\",\"pswd\":\"123123 ; passwd -d admin ; echo enable > /sys/class/tty/tty/enable; telnetd\"}}",
      "ble": true,
      "stats": true,
      "debug": [
        "true"
      ],
      "buzzer": false,
      "memory": false,
      "zha": false
    },
    "errors": [
      {
        "name": "custom_components.xiaomi_gateway3.core.gateway",
        "message": [
          "192.168.1.134 | Can't update gateway stats",
          "192.168.1.134 | Can't prepare gateway"
        ],
        "level": "WARNING",
        "source": [
          "custom_components/xiaomi_gateway3/core/shell/__init__.py",
          26
        ],
        "timestamp": 1667938858.3298657,
        "exception": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.10/asyncio/streams.py\", line 47, in open_connection\n    transport, _ = await loop.create_connection(\n  File \"/usr/local/lib/python3.10/asyncio/base_events.py\", line 1049, in create_connection\n    sock = await self._connect_sock(\n  File \"/usr/local/lib/python3.10/asyncio/base_events.py\", line 960, in _connect_sock\n    await self.sock_connect(sock, address)\n  File \"/usr/local/lib/python3.10/asyncio/selector_events.py\", line 500, in sock_connect\n    return await fut\nasyncio.exceptions.CancelledError\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/usr/local/lib/python3.10/asyncio/tasks.py\", line 456, in wait_for\n    return fut.result()\nasyncio.exceptions.CancelledError\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File \"/config/custom_components/xiaomi_gateway3/core/gateway/gate_gw3.py\", line 136, in gw3_update_serial_stats\n    async with shell.Session(self.host) as session:\n  File \"/config/custom_components/xiaomi_gateway3/core/shell/__init__.py\", line 26, in __aenter__\n    self.reader, self.writer = await asyncio.wait_for(self.coro, 5)\n  File \"/usr/local/lib/python3.10/asyncio/tasks.py\", line 458, in wait_for\n    raise exceptions.TimeoutError() from exc\nasyncio.exceptions.TimeoutError\n",
        "count": 8,
        "first_occurred": 1667644611.0158057
      },
      {
        "name": "custom_components.xiaomi_gateway3.core.mini_miio",
        "message": [
          "192.168.1.134 | Device offline"
        ],
        "level": "WARNING",
        "source": [
          "custom_components/xiaomi_gateway3/core/mini_miio.py",
          324
        ],
        "timestamp": 1667940991.786061,
        "exception": "",
        "count": 61,
        "first_occurred": 1667638955.9577644
      },
      {
        "name": "custom_components.xiaomi_gateway3.core.gateway",
        "message": [
          "192.168.1.134 | Can't prepare gateway",
          "192.168.1.134 | Can't update gateway stats"
        ],
        "level": "ERROR",
        "source": [
          "custom_components/xiaomi_gateway3/core/shell/base.py",
          26
        ],
        "timestamp": 1667974075.7689428,
        "exception": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.10/asyncio/streams.py\", line 617, in readuntil\n    await self._wait_for_data('readuntil')\n  File \"/usr/local/lib/python3.10/asyncio/streams.py\", line 502, in _wait_for_data\n    await self._waiter\nasyncio.exceptions.CancelledError\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/usr/local/lib/python3.10/asyncio/tasks.py\", line 456, in wait_for\n    return fut.result()\nasyncio.exceptions.CancelledError\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File \"/config/custom_components/xiaomi_gateway3/core/gateway/__init__.py\", line 178, in prepare_gateway\n    return await self.gw3_prepare_gateway(sh)\n  File \"/config/custom_components/xiaomi_gateway3/core/gateway/gate_gw3.py\", line 83, in gw3_prepare_gateway\n    await self.dispatcher_send(SIGNAL_PREPARE_GW, sh=sh)\n  File \"/config/custom_components/xiaomi_gateway3/core/gateway/base.py\", line 109, in dispatcher_send\n    await handler(**kwargs)\n  File \"/config/custom_components/xiaomi_gateway3/core/gateway/ble.py\", line 37, in ble_prepare_gateway\n    ok = await sh.check_bt()\n  File \"/config/custom_components/xiaomi_gateway3/core/shell/shell_gw3.py\", line 199, in check_bt\n    return await self.check_bin(\n  File \"/config/custom_components/xiaomi_gateway3/core/shell/shell_gw3.py\", line 184, in check_bin\n    if md5 in await self.exec(cmd):\n  File \"/config/custom_components/xiaomi_gateway3/core/shell/base.py\", line 26, in exec\n    raw = await asyncio.wait_for(coro, timeout=timeout)\n  File \"/usr/local/lib/python3.10/asyncio/tasks.py\", line 458, in wait_for\n    raise exceptions.TimeoutError() from exc\nasyncio.exceptions.TimeoutError\n",
        "count": 24,
        "first_occurred": 1667640586.8748732
      },
      {
        "name": "custom_components.xiaomi_gateway3.core.gateway",
        "message": [
          "192.168.1.134 | Can't prepare gateway",
          "192.168.1.134 | Can't update gateway stats"
        ],
        "level": "ERROR",
        "source": [
          "custom_components/xiaomi_gateway3/core/shell/shell_gw3.py",
          144
        ],
        "timestamp": 1667974145.2869751,
        "exception": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.10/asyncio/streams.py\", line 617, in readuntil\n    await self._wait_for_data('readuntil')\n  File \"/usr/local/lib/python3.10/asyncio/streams.py\", line 502, in _wait_for_data\n    await self._waiter\nasyncio.exceptions.CancelledError\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/usr/local/lib/python3.10/asyncio/tasks.py\", line 456, in wait_for\n    return fut.result()\nasyncio.exceptions.CancelledError\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File \"/config/custom_components/xiaomi_gateway3/core/gateway/__init__.py\", line 168, in prepare_gateway\n    sh = await session.login()\n  File \"/config/custom_components/xiaomi_gateway3/core/shell/__init__.py\", line 46, in login\n    await shell.login()\n  File \"/config/custom_components/xiaomi_gateway3/core/shell/shell_gw3.py\", line 144, in login\n    raw = await asyncio.wait_for(coro, timeout=3)\n  File \"/usr/local/lib/python3.10/asyncio/tasks.py\", line 458, in wait_for\n    raise exceptions.TimeoutError() from exc\nasyncio.exceptions.TimeoutError\n",
        "count": 24,
        "first_occurred": 1667640757.7229643
      },
      {
        "name": "custom_components.xiaomi_gateway3.core.gateway",
        "message": [
          "192.168.1.134 | Can't prepare gateway",
          "192.168.1.134 | Can't update gateway stats"
        ],
        "level": "ERROR",
        "source": [
          "custom_components/xiaomi_gateway3/core/shell/__init__.py",
          35
        ],
        "timestamp": 1667974276.558705,
        "exception": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.10/asyncio/streams.py\", line 617, in readuntil\n    await self._wait_for_data('readuntil')\n  File \"/usr/local/lib/python3.10/asyncio/streams.py\", line 502, in _wait_for_data\n    await self._waiter\nasyncio.exceptions.CancelledError\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/usr/local/lib/python3.10/asyncio/tasks.py\", line 456, in wait_for\n    return fut.result()\nasyncio.exceptions.CancelledError\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File \"/config/custom_components/xiaomi_gateway3/core/gateway/__init__.py\", line 168, in prepare_gateway\n    sh = await session.login()\n  File \"/config/custom_components/xiaomi_gateway3/core/shell/__init__.py\", line 35, in login\n    resp: bytes = await asyncio.wait_for(coro, 3)\n  File \"/usr/local/lib/python3.10/asyncio/tasks.py\", line 458, in wait_for\n    raise exceptions.TimeoutError() from exc\nasyncio.exceptions.TimeoutError\n",
        "count": 33,
        "first_occurred": 1667638990.515182
      }
    ],
    "devices": {
      "54ef44cb81d5": {
        "type": "gateway",
        "model": "lumi.gateway.mgl03",
        "fw_ver": "1.5.0_0102",
        "available": true,
        "decode_time": 70,
        "encode_time": 409960,
        "entities": {
          "alarm": "disarmed",
          "command": {
            "state": "unknown",
            "value": null
          },
          "data": {
            "state": "unknown",
            "value": null
          },
          "cloud_link": "on",
          "led": "off",
          "gateway": "on"
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "bluetooth_tx": 860,
          "bluetooth_rx": 523170755,
          "bluetooth_oe": 813242,
          "zigbee_tx": 4700785,
          "zigbee_rx": 23402753,
          "zigbee_oe": 88556,
          "network_pan_id": "0x5FCD",
          "radio_tx_power": 7,
          "radio_channel": 15,
          "free_mem": 4240,
          "load_avg": "2.56|2.43|2.48|3/93|24073",
          "rssi": -57,
          "uptime": "23 days, 02:06:05"
        }
      },
      "0x158d0006b233e6": {
        "type": "zigbee",
        "model": "lumi.sensor_wleak.aq1",
        "fw_ver": 6,
        "available": true,
        "decode_time": 253,
        "entities": {
          "moisture": "off",
          "battery": {
            "state": "71",
            "value": 71
          },
          "zigbee": {
            "state": "2022-11-09T09:45:55+00:00",
            "value": "2022-11-09T09:45:55.871125+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "ieee": "0x00158d0006b233e6",
          "nwk": "0x155f",
          "available": true,
          "type": "device",
          "parent": "-",
          "msg_received": 138,
          "msg_missed": 5,
          "linkquality": 176,
          "rssi": -56,
          "last_msg": "Basic",
          "new_resets": 0
        }
      },
      "0x158d0003c7a375": {
        "type": "zigbee",
        "model": "lumi.sensor_magnet",
        "fw_ver": 10,
        "available": true,
        "decode_time": 3417,
        "entities": {
          "contact": "off",
          "battery": {
            "state": "61",
            "value": 61
          },
          "battery_low": "off",
          "chip_temperature": {
            "state": "92",
            "value": 92
          },
          "zigbee": {
            "state": "2022-11-09T08:53:12+00:00",
            "value": "2022-11-09T08:53:12.261597+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "ieee": "0x00158d0003c7a375",
          "nwk": "0x581b",
          "available": true,
          "type": "device",
          "parent": "-",
          "msg_received": 251,
          "msg_missed": 24,
          "linkquality": 60,
          "rssi": -85,
          "last_msg": "Basic",
          "new_resets": 0
        }
      },
      "0x158d0006b2542f": {
        "type": "zigbee",
        "model": "lumi.sensor_wleak.aq1",
        "fw_ver": 6,
        "available": true,
        "decode_time": 1525,
        "entities": {
          "moisture": "off",
          "battery": {
            "state": "75",
            "value": 75
          },
          "zigbee": {
            "state": "2022-11-09T09:24:43+00:00",
            "value": "2022-11-09T09:24:43.620419+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "ieee": "0x00158d0006b2542f",
          "nwk": "0xd098",
          "available": true,
          "type": "device",
          "parent": "-",
          "msg_received": 157,
          "msg_missed": 8,
          "linkquality": 116,
          "rssi": -71,
          "last_msg": "Basic",
          "new_resets": 0
        }
      },
      "0x158d0006b25766": {
        "type": "zigbee",
        "model": "lumi.sensor_wleak.aq1",
        "fw_ver": 6,
        "available": true,
        "decode_time": 414,
        "entities": {
          "moisture": "off",
          "battery": {
            "state": "65",
            "value": 65
          },
          "zigbee": {
            "state": "2022-11-09T09:43:14+00:00",
            "value": "2022-11-09T09:43:14.534652+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "ieee": "0x00158d0006b25766",
          "nwk": "0xac1a",
          "available": true,
          "type": "device",
          "parent": "-",
          "msg_received": 158,
          "msg_missed": 13,
          "linkquality": 120,
          "rssi": -70,
          "last_msg": "Basic",
          "new_resets": 0
        }
      },
      "0x00158d00052932ef": {
        "type": "zigbee",
        "model": "lumi.sensor_magnet",
        "fw_ver": 10,
        "available": true,
        "decode_time": 1136,
        "entities": {
          "contact": "off",
          "battery": {
            "state": "65",
            "value": 65
          },
          "battery_low": "off",
          "chip_temperature": {
            "state": "DISABLED",
            "value": 94
          },
          "zigbee": {
            "state": "2022-11-09T09:31:12+00:00",
            "value": "2022-11-09T09:31:12.741600+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "ieee": "0x00158d00052932ef",
          "nwk": "0xed1f",
          "available": true,
          "type": "device",
          "parent": "-",
          "msg_received": 438,
          "msg_missed": 31,
          "linkquality": 160,
          "rssi": -60,
          "last_msg": "Basic",
          "new_resets": 0
        }
      },
      "0x00158d000283f46a": {
        "type": "zigbee",
        "model": "lumi.remote.b286acn01",
        "fw_ver": 9,
        "available": true,
        "decode_time": 1964,
        "entities": {
          "action": "",
          "battery": {
            "state": "85",
            "value": 85
          },
          "battery_low": {
            "state": "DISABLED",
            "value": null
          },
          "chip_temperature": {
            "state": "DISABLED",
            "value": 26
          },
          "zigbee": {
            "state": "2022-11-09T09:17:24+00:00",
            "value": "2022-11-09T09:17:24.871089+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "ieee": "0x00158d000283f46a",
          "nwk": "0x61fb",
          "available": true,
          "type": "device",
          "parent": "-",
          "msg_received": 134,
          "msg_missed": 8,
          "linkquality": 192,
          "rssi": -52,
          "last_msg": "Basic",
          "new_resets": 0
        }
      },
      "0x00158d00052786fd": {
        "type": "zigbee",
        "model": "lumi.sensor_magnet",
        "fw_ver": 10,
        "available": true,
        "decode_time": 1497,
        "entities": {
          "contact": "off",
          "battery": {
            "state": "59",
            "value": 59
          },
          "battery_low": "off",
          "chip_temperature": {
            "state": "93",
            "value": 93
          },
          "zigbee": {
            "state": "2022-11-09T09:25:12+00:00",
            "value": "2022-11-09T09:25:12.161066+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "ieee": "0x00158d00052786fd",
          "nwk": "0xa439",
          "available": true,
          "type": "device",
          "parent": "-",
          "msg_received": 143,
          "msg_missed": 7,
          "linkquality": 232,
          "rssi": -42,
          "last_msg": "Basic",
          "new_resets": 0
        }
      },
      "0x158d00068bb6c3": {
        "type": "zigbee",
        "model": "lumi.weather",
        "fw_ver": 0,
        "available": true,
        "decode_time": 3,
        "entities": {
          "temperature": {
            "state": "10.49",
            "value": 10.49
          },
          "humidity": {
            "state": "82.08",
            "value": 82.08
          },
          "battery": {
            "state": "49",
            "value": 49
          },
          "pressure": {
            "state": "838.7",
            "value": 838.7
          },
          "zigbee": {
            "state": "2022-11-09T09:50:06+00:00",
            "value": "2022-11-09T09:50:06.087275+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "ieee": "0x00158d00068bb6c3",
          "nwk": "0x52c0",
          "available": true,
          "msg_received": 97574,
          "msg_missed": 8414,
          "linkquality": 164,
          "rssi": -59,
          "last_msg": "Pressure",
          "type": "device",
          "parent": "-",
          "new_resets": 363
        }
      },
      "0x158d0006b878d6": {
        "type": "zigbee",
        "model": "lumi.remote.b1acn01",
        "fw_ver": 1,
        "available": true,
        "decode_time": 731,
        "entities": {
          "action": "",
          "battery": {
            "state": "57",
            "value": 57
          },
          "battery_low": {
            "state": "DISABLED",
            "value": null
          },
          "chip_temperature": {
            "state": "DISABLED",
            "value": 30
          },
          "zigbee": {
            "state": "2022-11-09T09:37:57+00:00",
            "value": "2022-11-09T09:37:57.539337+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "ieee": "0x00158d0006b878d6",
          "nwk": "0x9e57",
          "available": true,
          "type": "device",
          "parent": "-",
          "msg_received": 174,
          "msg_missed": 20,
          "linkquality": 128,
          "rssi": -68,
          "last_msg": "Basic",
          "new_resets": 0
        }
      },
      "0x158d0006b8850d": {
        "type": "zigbee",
        "model": "lumi.remote.b1acn01",
        "fw_ver": 0,
        "available": true,
        "decode_time": 3087,
        "entities": {
          "action": "",
          "battery": {
            "state": "71",
            "value": 71
          },
          "battery_low": {
            "state": "DISABLED",
            "value": null
          },
          "chip_temperature": {
            "state": "DISABLED",
            "value": 23
          },
          "zigbee": {
            "state": "2022-11-09T08:58:41+00:00",
            "value": "2022-11-09T08:58:41.890074+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "ieee": "0x00158d0006b8850d",
          "nwk": "0x2135",
          "available": true,
          "type": "device",
          "parent": "-",
          "msg_received": 132,
          "msg_missed": 7,
          "linkquality": 128,
          "rssi": -68,
          "last_msg": "Basic",
          "new_resets": 0
        }
      },
      "b460edcf4400": {
        "type": "mesh",
        "model": 4160,
        "fw_ver": null,
        "available": false,
        "decode_time": 3088878,
        "entities": {
          "switch": {
            "state": "unavailable",
            "value": "off"
          },
          "battery": "unavailable",
          "supply": "unavailable",
          "led": {
            "state": "unavailable",
            "value": "off"
          },
          "power_mode": {
            "state": "unavailable",
            "value": null
          },
          "mesh": {
            "state": "2022-10-04T15:48:50+00:00",
            "value": "2022-10-04T15:48:50.614942+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "mac": "b460edcf4400",
          "available": true
        }
      },
      "28d1272d14e8": {
        "type": "ble",
        "model": 2038,
        "fw_ver": null,
        "available": true,
        "decode_time": 132,
        "entities": {
          "battery": {
            "state": "0",
            "value": 0
          },
          "light": "on",
          "motion": "off",
          "idle_time": {
            "state": "1800",
            "value": 1800
          },
          "ble": {
            "state": "2022-11-09T09:47:56+00:00",
            "value": "2022-11-09T09:47:56.829558+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "mac": "28d1272d14e8",
          "available": true,
          "msg_received": 2730,
          "last_msg": "Battery"
        }
      },
      "a4c13868564d": {
        "type": "ble",
        "model": 1371,
        "fw_ver": null,
        "available": true,
        "decode_time": 178,
        "entities": {
          "temperature": {
            "state": "21.9",
            "value": 21.9
          },
          "humidity": {
            "state": "67",
            "value": 67
          },
          "battery": {
            "state": "100",
            "value": 100
          },
          "ble": {
            "state": "2022-11-09T09:47:10+00:00",
            "value": "2022-11-09T09:47:10.533262+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "mac": "a4c13868564d",
          "available": true,
          "msg_received": 1521,
          "last_msg": "Temperature"
        }
      },
      "54ef44e63453": {
        "type": "ble",
        "model": 2147,
        "fw_ver": null,
        "available": true,
        "decode_time": 265,
        "entities": {
          "water_leak": "off",
          "battery": {
            "state": "100",
            "value": 100
          },
          "action": "",
          "ble": {
            "state": "2022-11-09T09:45:44+00:00",
            "value": "2022-11-09T09:45:44.044677+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "mac": "54ef44e63453",
          "available": true,
          "msg_received": 1466,
          "last_msg": "Battery"
        }
      },
      "a4c138ebf2e9": {
        "type": "ble",
        "model": 1371,
        "fw_ver": null,
        "available": true,
        "decode_time": 227,
        "entities": {
          "temperature": {
            "state": "22.1",
            "value": 22.1
          },
          "humidity": {
            "state": "66",
            "value": 66
          },
          "battery": {
            "state": "100",
            "value": 100
          },
          "ble": {
            "state": "2022-11-09T09:46:22+00:00",
            "value": "2022-11-09T09:46:22.387885+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "mac": "a4c138ebf2e9",
          "available": true,
          "msg_received": 1265,
          "last_msg": "Temperature"
        }
      },
      "54ef44e2a670": {
        "type": "ble",
        "model": 2455,
        "fw_ver": null,
        "available": true,
        "decode_time": 41,
        "entities": {
          "action": "",
          "smoke": "off",
          "battery": {
            "state": "100",
            "value": 100
          },
          "ble": {
            "state": "2022-11-09T09:49:27+00:00",
            "value": "2022-11-09T09:49:27.671020+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "mac": "54ef44e2a670",
          "available": true,
          "msg_received": 1304,
          "last_msg": "Battery"
        }
      },
      "582d346033de": {
        "type": "ble",
        "model": 2691,
        "fw_ver": null,
        "available": true,
        "decode_time": 132,
        "entities": {
          "motion": "off",
          "light": "off",
          "illuminance": {
            "state": "5",
            "value": 5
          },
          "battery": {
            "state": "14",
            "value": 14
          },
          "idle_time": {
            "state": "300",
            "value": 300
          },
          "ble": {
            "state": "2022-11-09T09:47:57+00:00",
            "value": "2022-11-09T09:47:57.206783+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "mac": "582d346033de",
          "available": true,
          "msg_received": 7136,
          "last_msg": "Battery"
        }
      },
      "a4c1388ae7a0": {
        "type": "ble",
        "model": 1371,
        "fw_ver": null,
        "available": true,
        "decode_time": 141,
        "entities": {
          "temperature": {
            "state": "23.2",
            "value": 23.2
          },
          "humidity": {
            "state": "60",
            "value": 60
          },
          "battery": {
            "state": "100",
            "value": 100
          },
          "ble": {
            "state": "2022-11-09T09:47:48+00:00",
            "value": "2022-11-09T09:47:48.421124+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "mac": "a4c1388ae7a0",
          "available": true,
          "msg_received": 1107,
          "last_msg": "Temperature"
        }
      },
      "54ef44e637dc": {
        "type": "ble",
        "model": 2147,
        "fw_ver": null,
        "available": true,
        "decode_time": 110,
        "entities": {
          "water_leak": "off",
          "battery": {
            "state": "90",
            "value": 90
          },
          "action": {
            "state": "DISABLED",
            "value": ""
          },
          "ble": {
            "state": "2022-11-09T09:48:19+00:00",
            "value": "2022-11-09T09:48:19.497872+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "mac": "54ef44e637dc",
          "available": true,
          "msg_received": 1453,
          "last_msg": "Battery"
        }
      },
      "a4c13800b195": {
        "type": "ble",
        "model": 1371,
        "fw_ver": null,
        "available": true,
        "decode_time": 399,
        "entities": {
          "temperature": {
            "state": "22.6",
            "value": 22.6
          },
          "humidity": {
            "state": "65",
            "value": 65
          },
          "battery": {
            "state": "10",
            "value": 10
          },
          "ble": {
            "state": "2022-11-09T09:43:29+00:00",
            "value": "2022-11-09T09:43:29.542703+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "mac": "a4c13800b195",
          "available": true,
          "msg_received": 1527,
          "last_msg": "Temperature"
        }
      },
      "a4c138f7cf64": {
        "type": "ble",
        "model": 1371,
        "fw_ver": null,
        "available": true,
        "decode_time": 142,
        "entities": {
          "temperature": {
            "state": "11.5",
            "value": 11.5
          },
          "humidity": {
            "state": "79",
            "value": 79
          },
          "battery": {
            "state": "100",
            "value": 100
          },
          "ble": {
            "state": "2022-11-09T09:47:46+00:00",
            "value": "2022-11-09T09:47:46.719603+00:00"
          }
        },
        "gateways": [
          "54ef44cb81d5"
        ],
        "stats": {
          "mac": "a4c138f7cf64",
          "available": true,
          "msg_received": 1535,
          "last_msg": "Temperature"
        }
      }
    }
  }
}
AlexxIT commented 1 year ago

Please reopen the issue if it is still relevant