XiaomiGateway3
XiaomiGateway3 copied to clipboard
Unavailable
Everything was working correctly until one week ago: Have a Xiaomi Gateway ZNDMWG02LM (firmware downgraded to 1.5.0_0102) Have 2x Temperature Sensors LYWSD03MMC Have a Door Sensor MCCGQ02HL From nothing everything became unavailable, removed all integrations and reinstalled, logs are ok, they show up correctly but I can't get them available: any tips ?
https://github.com/AlexxIT/XiaomiGateway3#debug-mode
@AlexxIT I have a similar issue and in the logs I see that telnet is not enabled. How to fix it? 2022-03-27 19:29:04 INFO mini_miio 192.168.1.175 | No answer on set_ip_info {'ssid': '""', 'pswd': '123123 ; passwd -d admin ; echo enable > /sys/class/tty/tty/enable; telnetd'} 2022-03-27 19:29:04 DEBUG base 192.168.1.175 [BASE] Can't enable telnet
@alexandrgoryachko are you sure gateway IP correct and your network don't block anything?
IP is correct and I didn't change any network settings last 3 month in my router

Fixed issue with telnet, but still have no answers from connected sensors. Now the log is:
2022-03-27 21:54:10 DEBUG main SysInfo: {'installation_type': 'Home Assistant Supervised', 'version': '2022.3.7', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.9.9', 'docker': True, 'arch': 'armv7l', 'timezone': 'Europe/Minsk', 'os_name': 'Linux', 'os_version': '5.10.39-v7l+', 'user': 'root', 'supervisor': '2022.03.5', 'host_os': 'Raspbian GNU/Linux 10 (buster)', 'docker_version': '20.10.7', 'chassis': ''} 2022-03-27 21:54:10 DEBUG base 192.168.1.175 [BASE] Start main loop 2022-03-27 21:54:10 DEBUG base 192.168.1.175 [BASE] Prepare gateway gw3 with firmware 1.5.1_0032 2022-03-27 21:54:10 DEBUG base 192.168.1.175 [BASE] 6490c179fb7b (lumi.gateway.mgl03) setup gateway ZNDMWG03LM ZNDMWG02LM: alarm, command, data, cloud_link, led, gateway 2022-03-27 21:54:10 DEBUG base 192.168.1.175 [MIOT] 6490c179fb7b (lumi.gateway.mgl03) read {'mi_spec': [{'siid': 3, 'piid': 1}, {'siid': 3, 'piid': 22}]} 2022-03-27 21:54:10 DEBUG base 192.168.1.175 [BASE] 582d3460389b (2691) setup ble CGPR1: motion, light, illuminance, battery, idle_time 2022-03-27 21:54:10 DEBUG base 192.168.1.175 [BASE] 582d3412430b (2888) setup ble CGG1: temperature, humidity 2022-03-27 21:54:10 DEBUG base 192.168.1.175 [BASE] 582d34112a66 (839) setup ble CGG1: temperature, humidity 2022-03-27 21:54:10 DEBUG base 192.168.1.175 [BASE] Patch Bluetooth 2022-03-27 21:54:10 DEBUG base 192.168.1.175 [BASE] Applied 0 patches to daemons 2022-03-27 21:54:10 DEBUG base 192.168.1.175 [BASE] MQTT connected 2022-03-27 21:56:22 DEBUG base 192.168.1.175 [BASE] Stop all tasks 2022-03-27 21:56:39 DEBUG base 192.168.1.175 [BASE] Start main loop 2022-03-27 21:56:39 DEBUG base 192.168.1.175 [BASE] Prepare gateway gw3 with firmware 1.5.1_0032 2022-03-27 21:56:39 DEBUG base 192.168.1.175 [BASE] 6490c179fb7b (lumi.gateway.mgl03) setup gateway ZNDMWG03LM ZNDMWG02LM: alarm, command, data, cloud_link, led, gateway 2022-03-27 21:56:39 DEBUG base 192.168.1.175 [MIOT] 6490c179fb7b (lumi.gateway.mgl03) read {'mi_spec': [{'siid': 3, 'piid': 1}, {'siid': 3, 'piid': 22}]} 2022-03-27 21:56:39 DEBUG base 192.168.1.175 [BASE] 582d3460389b (2691) setup ble CGPR1: motion, light, illuminance, battery, idle_time 2022-03-27 21:56:39 DEBUG base 192.168.1.175 [BASE] 582d3412430b (2888) setup ble CGG1: temperature, humidity 2022-03-27 21:56:39 DEBUG base 192.168.1.175 [BASE] 582d34112a66 (839) setup ble CGG1: temperature, humidity 2022-03-27 21:56:40 DEBUG base 192.168.1.175 [BASE] Patch Bluetooth 2022-03-27 21:56:40 DEBUG base 192.168.1.175 [BASE] Applied 0 patches to daemons 2022-03-27 21:56:40 DEBUG base 192.168.1.175 [BASE] MQTT connected
Same here. HA no longer sees nor updates xiaomi devices. All my automations dead. HA 2022.3.7 firmware v1.5.0_0102 Deleted integration and re-installed, still no joy.
Not using MQTT, just the Gateway 3 integration. Anyone else have this problem?
@alexandrgoryachko you can try to reboot gateway. Seems like init phase is OK. Are devices works in MiHome?
@starman2k01 try to get some logs
@AlexxIT I've rebooted gateway - no affect. Also everything is working in Mi Home app
@alexandrgoryachko can you see this sensors in Gateway child device? Maybe this sensors works via other BLE gateways.
Yes, I see them in Gateway child device
Same problem here. After upgrading HA to 2022.4 all sensors stoped working. The same had happened when upgrading 2022.3. Already tried to restart gateway and reload the integrations within HA, but no luck. In Xiaomi APP all devices appear online.
Log:
2022-04-07 09:45:25 DEBUG main SysInfo: {'installation_type': 'Home Assistant OS', 'version': '2022.4.0', 'dev': False, 'hassio': True....}
2022-04-07 09:45:34 DEBUG main Loaded from MiCloud 11 devices
2022-04-07 09:45:36 DEBUG base 192.168.68.122 [BASE] Start main loop
2022-04-07 09:45:38 DEBUG base 192.168.68.122 [BASE] Prepare gateway gw3 with firmware 1.5.1_0032
2022-04-07 09:45:38 DEBUG base 192.168.68.122 [BASE] 54ef442d4cbb (lumi.gateway.mgl03) setup gateway ZNDMWG03LM ZNDMWG02LM: alarm, command, data, cloud_link, led, gateway
2022-04-07 09:45:38 DEBUG base 192.168.68.122 [MIOT] 54ef442d4cbb (lumi.gateway.mgl03) read {'mi_spec': [{'siid': 3, 'piid': 1}, {'siid': 3, 'piid': 22}]}
2022-04-07 09:45:39 DEBUG base 192.168.68.122 [BASE] a4c138c5d0a5 (1371) setup ble LYWSD03MMC: temperature, humidity, battery, ble
2022-04-07 09:45:39 DEBUG base 192.168.68.122 [BASE] a4c1386c42b0 (1371) setup ble LYWSD03MMC: temperature, humidity, battery, ble
2022-04-07 09:45:39 DEBUG base 192.168.68.122 [BASE] a4c1386a23a6 (1371) setup ble LYWSD03MMC: temperature, humidity, battery, ble
2022-04-07 09:45:39 DEBUG base 192.168.68.122 [BASE] a4c138d2e60c (1371) setup ble LYWSD03MMC: temperature, humidity, battery, ble
2022-04-07 09:45:39 DEBUG base 192.168.68.122 [BASE] a4c13894dbc5 (1371) setup ble LYWSD03MMC: temperature, humidity, battery, ble
2022-04-07 09:45:39 DEBUG base 192.168.68.122 [BASE] a4c138a1df0d (1371) setup ble LYWSD03MMC: temperature, humidity, battery, ble
2022-04-07 09:45:39 DEBUG base 192.168.68.122 [BASE] a4c1387557fd (1371) setup ble LYWSD03MMC: temperature, humidity, battery, ble
2022-04-07 09:45:39 DEBUG base 192.168.68.122 [BASE] a4c138c8d5a7 (1371) setup ble LYWSD03MMC: temperature, humidity, battery, ble
2022-04-07 09:45:39 DEBUG base 192.168.68.122 [BASE] a4c138c15eab (1371) setup ble LYWSD03MMC: temperature, humidity, battery, ble
2022-04-07 09:45:39 DEBUG base 192.168.68.122 [BASE] a4c138008e0d (1371) setup ble LYWSD03MMC: temperature, humidity, battery, ble
2022-04-07 09:45:39 DEBUG base 192.168.68.122 [BASE] Patch Bluetooth
2022-04-07 09:45:39 DEBUG base 192.168.68.122 [BASE] Init Zigbee parents
2022-04-07 09:45:39 DEBUG base 192.168.68.122 [BASE] Applied 0 patches to daemons
2022-04-07 09:45:39 DEBUG base 192.168.68.122 [BASE] MQTT connected
2022-04-07 09:46:09 DEBUG base 192.168.68.122 [BASE] Run zigbee parent scan process
2022-04-07 09:46:09 DEBUG base 192.168.68.122 [BASE] Process zigbee parent scan response
2022-04-07 09:46:09 DEBUG base 192.168.68.122 [BASE] Total zigbee devices: 0
2022-04-07 09:46:18 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vn9pquc5g00","eid":4102,"edata":"4e02","pdid":1371,"seq":220}'
2022-04-07 09:46:39 DEBUG base 192.168.68.122 [BASE] a4c1386c42b0 (1371) set device offline
2022-04-07 09:47:20 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vn9pquc5g00","eid":4100,"edata":"cf00","pdid":1371,"seq":222}'
2022-04-07 09:47:23 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnagvg8ec00","eid":4102,"edata":"4c02","pdid":1371,"seq":209}'
2022-04-07 09:47:41 DEBUG base 192.168.68.122 [BASE] a4c1386c42b0 (1371) set device offline
2022-04-07 09:47:41 DEBUG base 192.168.68.122 [BASE] a4c138c8d5a7 (1371) set device offline
2022-04-07 09:47:41 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnagvg8ec00","eid":4106,"edata":"64","pdid":1371,"seq":210}'
2022-04-07 09:47:43 DEBUG base 192.168.68.122 [BASE] Gateway time offset: -1.0493793487548828
2022-04-07 09:48:11 DEBUG base 192.168.68.122 [BASE] a4c138c8d5a7 (1371) set device offline
2022-04-07 09:48:19 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vndons0eg00","eid":4102,"edata":"6a02","pdid":1371,"seq":209}'
2022-04-07 09:48:20 DEBUG base 192.168.68.122 [BLEF] a4c138d2e60c (1371) recv {'battery': 100}
2022-04-07 09:48:22 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnagvg8ec00","eid":4100,"edata":"c900","pdid":1371,"seq":212}'
2022-04-07 09:48:41 DEBUG base 192.168.68.122 [BASE] a4c138c8d5a7 (1371) set device offline
2022-04-07 09:49:08 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18rvl22lke400","eid":4106,"edata":"64","pdid":1371,"seq":25}'
2022-04-07 09:49:11 DEBUG base 192.168.68.122 [BASE] a4c1387557fd (1371) set device offline
2022-04-07 09:49:16 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vndons0eg00","eid":4100,"edata":"c300","pdid":1371,"seq":212}'
2022-04-07 09:49:41 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnibcsseg00","eid":4102,"edata":"8f02","pdid":1371,"seq":194}'
2022-04-07 09:50:11 DEBUG base 192.168.68.122 [BASE] a4c13894dbc5 (1371) set device offline
2022-04-07 09:50:22 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.4.18ogbser8gg00","eid":4106,"edata":"64","pdid":1371,"seq":56}'
2022-04-07 09:50:25 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnl6juk5c00","eid":4102,"edata":"7002","pdid":1371,"seq":168}'
2022-04-07 09:50:41 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnibcsseg00","eid":4100,"edata":"cb00","pdid":1371,"seq":196}'
2022-04-07 09:50:41 DEBUG base 192.168.68.122 [BASE] a4c1386a23a6 (1371) set device offline
2022-04-07 09:50:41 DEBUG base 192.168.68.122 [BASE] a4c13894dbc5 (1371) set device offline
2022-04-07 09:50:41 DEBUG base 192.168.68.122 [BASE] a4c138c15eab (1371) set device offline
2022-04-07 09:51:22 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.4.18ogbser8gg00","eid":4102,"edata":"f801","pdid":1371,"seq":58}'
2022-04-07 09:51:24 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnl6juk5c00","eid":4100,"edata":"9a00","pdid":1371,"seq":170}'
2022-04-07 09:51:41 DEBUG base 192.168.68.122 [BASE] a4c1386a23a6 (1371) set device offline
2022-04-07 09:51:41 DEBUG base 192.168.68.122 [BASE] a4c138c15eab (1371) set device offline
2022-04-07 09:52:22 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.4.18ogbser8gg00","eid":4100,"edata":"e000","pdid":1371,"seq":60}'
2022-04-07 09:52:22 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnfvdo0eg00","eid":4102,"edata":"a101","pdid":1371,"seq":205}'
2022-04-07 09:52:41 DEBUG base 192.168.68.122 [BASE] a4c1386a23a6 (1371) set device offline
2022-04-07 09:52:41 DEBUG base 192.168.68.122 [BASE] a4c138008e0d (1371) set device offline
2022-04-07 09:52:43 DEBUG base 192.168.68.122 [BASE] Gateway time offset: -1.032956838607788
2022-04-07 09:53:07 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18rvl22lke400","eid":4102,"edata":"4602","pdid":1371,"seq":27}'
2022-04-07 09:53:11 DEBUG base 192.168.68.122 [BASE] a4c1387557fd (1371) set device offline
2022-04-07 09:53:23 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnfvdo0eg00","eid":4100,"edata":"1f01","pdid":1371,"seq":207}'
2022-04-07 09:53:41 DEBUG base 192.168.68.122 [BASE] a4c138008e0d (1371) set device offline
2022-04-07 09:54:03 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnj1uvoe400","eid":4102,"edata":"7302","pdid":1371,"seq":205}'
2022-04-07 09:54:08 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18rvl22lke400","eid":4100,"edata":"d000","pdid":1371,"seq":29}'
2022-04-07 09:54:11 DEBUG base 192.168.68.122 [BASE] a4c138a1df0d (1371) set device offline
2022-04-07 09:54:11 DEBUG base 192.168.68.122 [BASE] a4c1387557fd (1371) set device offline
2022-04-07 09:54:25 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnl6juk5c00","eid":4106,"edata":"64","pdid":1371,"seq":172}'
2022-04-07 09:54:41 DEBUG base 192.168.68.122 [BASE] a4c138c15eab (1371) set device offline
2022-04-07 09:54:52 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnf3ipo5s00","eid":4102,"edata":"c301","pdid":1371,"seq":224}'
2022-04-07 09:55:04 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnj1uvoe400","eid":4100,"edata":"c500","pdid":1371,"seq":207}'
2022-04-07 09:55:11 DEBUG base 192.168.68.122 [BASE] a4c138c5d0a5 (1371) set device offline
2022-04-07 09:55:11 DEBUG base 192.168.68.122 [BASE] a4c138a1df0d (1371) set device offline
2022-04-07 09:55:53 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnf3ipo5s00","eid":4100,"edata":"ce00","pdid":1371,"seq":226}'
2022-04-07 09:56:11 DEBUG base 192.168.68.122 [BASE] a4c138c5d0a5 (1371) set device offline
2022-04-07 09:57:18 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vn9pquc5g00","eid":4102,"edata":"4f02","pdid":1371,"seq":224}'
2022-04-07 09:57:41 DEBUG base 192.168.68.122 [BASE] a4c1386c42b0 (1371) set device offline
2022-04-07 09:57:43 DEBUG base 192.168.68.122 [BASE] Gateway time offset: -1.036651849746704
2022-04-07 09:58:17 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vn9pquc5g00","eid":4100,"edata":"cf00","pdid":1371,"seq":226}'
2022-04-07 09:58:23 ERROR base 192.168.68.122 | Processing MQTT: log/ble b'{"did":"blt.3.18vnagvg8ec00","eid":4102,"edata":"4d02","pdid":1371,"seq":214}'
2022-04-07 09:58:41 DEBUG base 192.168.68.122 [BASE] a4c1386c42b0 (1371) set device offline
2022-04-07 09:58:41 DEBUG base 192.168.68.122 [BASE] a4c138c8d5a7 (1371) set device offline
@gui-mac you need to check Hass logs. There should be a detailed description of the error
I've updated this plugin to the last version(v2.0.9) and now everything works fine
Please reopen the issue if it is still relevant