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

firmware keeps unlocking #329

Closed deco3690 closed 3 years ago

deco3690 commented 3 years ago

I keep having the hub firmware become unlocked. I tried flashing the firmware via telnet (https://github.com/AlexxIT/XiaomiGateway3/wiki), using master version, and its still the same. I have another 2 GW3 on the same firmware without any issues.

Anyone have any suggestions? firmware unlock 2021-05-15

AlexxIT commented 3 years ago

Maybe you block internet for gateway

deco3690 commented 3 years ago

I dont have any block for the gateway. Access using Mi Home seems to be typical, without any timeout or issues either. The HA config is basically identical for all three XM GW3. It's using the same firmware version 1.4.7_0160 as the other 2 GW3, and all are connected to one rp4i running HA/gw3 integration. Any thing else I should check?

AlexxIT commented 3 years ago

Maybe some errors in logs. Also you can enable debug in integration options

deco3690 commented 3 years ago

I've done that and observed the logs for the past few days. What am I looking for?

This is from the main log; there's also a bigger debug log.

Cannot connect to Gateway
2:13:28 PM – (ERROR) /usr/local/lib/python3.8/site-packages/xiaomi_gateway/__init__.py - message first occurred at 2:12:48 PM and shows up 10 times
Unable to update from humidity sensor: could not convert string to float: 'unavailable'
2:12:50 PM – (ERROR) SmartIR (custom integration) - message first occurred at 2:12:50 PM and shows up 2 times
Unable to update from temperature sensor: could not convert string to float: 'unavailable'
2:12:50 PM – (ERROR) SmartIR (custom integration) - message first occurred at 2:12:50 PM and shows up 2 times
You are using a custom integration xiaomi_miio_airpurifier which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2:12:43 PM – (WARNING) loader.py - message first occurred at 2:12:33 PM and shows up 2 times
AlexxIT commented 3 years ago

This logs not from Gateway 3

deco3690 commented 3 years ago

Ah, ok so should be this one then:

2021-05-19 14:12:36  DEBUG    main          SysInfo: {'installation_type': 'Home Assistant OS', 'version': '2021.5.3', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.8.9', 'docker': True, 'arch': 'aarch64', 'os_name': 'Linux', 'os_version': '5.4.83-v8', 'supervisor': '2021.04.3', 'host_os': 'Home Assistant OS 5.13', 'docker_version': '19.03.15', 'chassis': 'embedded'}
2021-05-19 14:12:45  DEBUG    main          Loaded from MiCloud 85 devices
2021-05-19 14:12:45  DEBUG    gateway3      192.168.1.145 | Start main thread
2021-05-19 14:12:46  DEBUG    gateway3      192.168.1.145 | lumi.158d0000fa4385 lumi.sensor_magnet.v2 retain: {'CCA': 1, 'alive': 1, 'battery': 64, 'battery_end_of_life': 0, 'chip_temperature': 78, 'cur_state': 3, 'fw_ver': 0, 'hw_ver': 0, 'lqi': 144, 'no_close_sec': 60, 'power_tx': 10, 'pre_state': 1, 'pv_state': 0, 'reset_cnt': 94, 'security_state': True, 'send_all_cnt': 1, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'status': 'close', 'voltage': 2985}
2021-05-19 14:12:46  DEBUG    gateway3      192.168.1.145 | lumi.158d0001001fbc lumi.plug.v1 retain: {'alive': 1, 'channel_0': 'off', 'charge_protect': 1, 'chip_temperature': 38, 'en_night_tip_light': 1, 'fw_ver': '1.0.0_0090', 'hw_ver': 18, 'load_power': 0, 'load_voltage': 0, 'lqi': 136, 'max_power': 1800, 'neutral_0': 'off', 'plug_detection': 'plug_out', 'power': 'off', 'power_on_join': 0, 'poweroff_memory': 0, 'protect': 'temp', 'reset_cnt': 71}
2021-05-19 14:12:46  DEBUG    gateway3      192.168.1.145 | lumi.158d000106dd7d lumi.sensor_ht.v1 retain: {'CCA': 1, 'alive': 1, 'battery': 62, 'battery_end_of_life': 0, 'chip_temperature': 0, 'cur_state': 3, 'fw_ver': '1.0.0_0001', 'humidity': 5594, 'hw_ver': 0, 'lqi': 152, 'power_tx': 10, 'pre_state': 1, 'pressure': 0, 'pv_state': 0, 'reset_cnt': 102, 'send_all_cnt': 2, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'temperature': 2959, 'voltage': 2975}
2021-05-19 14:12:46  DEBUG    gateway3      192.168.1.145 | lumi.158d0001081c53 lumi.sensor_magnet.v2 retain: {'CCA': 1, 'alive': 1, 'battery': 70, 'battery_end_of_life': 0, 'chip_temperature': 84, 'cur_state': 3, 'fw_ver': 0, 'hw_ver': 0, 'lqi': 136, 'no_close_sec': 60, 'power_tx': 10, 'pre_state': 1, 'pv_state': 0, 'reset_cnt': 123, 'security_state': True, 'send_all_cnt': 3, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'status': 'close', 'voltage': 3025}
2021-05-19 14:12:46  DEBUG    gateway3      192.168.1.145 | lumi.158d000112b5fc lumi.sensor_motion.v2 retain: {'CCA': 1, 'alive': 1, 'battery': 74, 'battery_end_of_life': 0, 'chip_temperature': 83, 'cur_state': 3, 'fw_ver': 0, 'hw_ver': 0, 'illumination': 0, 'lqi': 252, 'lux': 0, 'no_motion_sec': 120, 'parent': 0, 'power_tx': 10, 'pre_state': 1, 'pv_state': 0, 'report_period': 60, 'reset_cnt': 12, 'security_state': True, 'send_all_cnt': 6, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'voltage': 3045}
2021-05-19 14:12:46  DEBUG    gateway3      192.168.1.145 | lumi.158d0001144880 lumi.sensor_motion.v2 retain: {'CCA': 0, 'alive': 1, 'battery': 95, 'battery_end_of_life': 0, 'chip_temperature': 0, 'cur_state': 0, 'fw_ver': 0, 'hw_ver': 0, 'illumination': 0, 'lqi': 0, 'lux': 0, 'no_motion_sec': 120, 'parent': 0, 'power_tx': 0, 'pre_state': 0, 'pv_state': 0, 'report_period': 60, 'reset_cnt': 0, 'security_state': True, 'send_all_cnt': 0, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'voltage': 0}
2021-05-19 14:12:46  DEBUG    gateway3      192.168.1.145 | lumi.158d000130ed42 lumi.sensor_smoke.v1 retain: {'CCA': 1, 'alarm': 0, 'alive': 1, 'battery': 84, 'battery_end_of_life': 0, 'chip_temperature': 35, 'cur_state': 3, 'density': 0, 'fw_ver': '1.0.0_0001', 'hw_ver': 0, 'lqi': 136, 'parent': 'lumi.158d0001001fbc', 'power_tx': 10, 'pre_state': 1, 'pv_state': 0, 'read_info': 285278208, 'reset_cnt': 17, 'send_all_cnt': 1, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'sensor_info': 0, 'status_fault': 0, 'voltage': 3105, 'write_info': 50397184}
2021-05-19 14:12:46  DEBUG    gateway3      192.168.1.145 | lumi.158d00013e2455 lumi.plug.v1 retain: {'alive': 1, 'channel_0': 'off', 'charge_protect': 0, 'chip_temperature': 46, 'en_night_tip_light': 1, 'fw_ver': '1.0.0_0032', 'hw_ver': 19, 'load_power': 2.23, 'load_voltage': 0, 'lqi': 136, 'max_power': 1800, 'neutral_0': 'on', 'plug_detection': 'plug_in', 'power': 'off', 'power_on_join': 0, 'poweroff_memory': 0, 'protect': 'temp', 'reset_cnt': 45}
2021-05-19 14:12:46  DEBUG    gateway3      192.168.1.145 | lumi.158d0002006d3f lumi.sensor_motion.aq2 retain: {'CCA': 1, 'alive': 1, 'battery': 82, 'battery_end_of_life': 0, 'chip_temperature': 34, 'cur_state': 3, 'fw_ver': '1.0.0_0005', 'hw_ver': 0, 'illumination': 31, 'lqi': 136, 'lux': 14, 'no_motion_sec': 120, 'parent': 'lumi.158d0001001fbc', 'power_tx': 10, 'pre_state': 1, 'pv_state': 0, 'report_period': 60, 'reset_cnt': 51, 'security_state': True, 'send_all_cnt': 3, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'voltage': 3095}
2021-05-19 14:12:46  DEBUG    gateway3      192.168.1.145 | lumi.158d00021361b3 lumi.sensor_switch.aq2 retain: {'CCA': 1, 'alive': 1, 'battery': 74, 'battery_end_of_life': 0, 'chip_temperature': 32, 'cur_state': 3, 'fw_ver': '1.0.0_0003', 'hw_ver': 0, 'lqi': 168, 'parent': 'lumi.bc33acfffe7c75e1', 'power_tx': 10, 'pre_state': 1, 'pv_state': 0, 'reset_cnt': 15, 'send_all_cnt': 1, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'voltage': 3045}
2021-05-19 14:12:46  DEBUG    gateway3      192.168.1.145 | lumi.158d0002b6d048 lumi.sensor_motion.aq2 retain: {'CCA': 1, 'alive': 1, 'battery': 69, 'battery_end_of_life': 0, 'chip_temperature': 36, 'cur_state': 3, 'fw_ver': '1.0.0_0005', 'hw_ver': 0, 'illumination': 354, 'lqi': 100, 'lux': 189, 'no_motion_sec': 120, 'parent': 'lumi.bc33acfffe7c75e1', 'power_tx': 10, 'pre_state': 4, 'pv_state': 0, 'report_period': 60, 'reset_cnt': 37, 'security_state': True, 'send_all_cnt': 1, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'voltage': 3015}
2021-05-19 14:12:46  DEBUG    gateway3      192.168.1.145 | lumi.158d0002b93e82 lumi.sensor_motion.aq2 retain: {'CCA': 1, 'alive': 1, 'battery': 69, 'battery_end_of_life': 0, 'chip_temperature': 35, 'cur_state': 3, 'fw_ver': '1.0.0_0005', 'hw_ver': 0, 'illumination': 7, 'lqi': 136, 'lux': 7, 'no_motion_sec': 120, 'parent': 'lumi.158d0001001fbc', 'power_tx': 10, 'pre_state': 1, 'pv_state': 0, 'report_period': 60, 'reset_cnt': 24, 'security_state': True, 'send_all_cnt': 3, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'voltage': 3015}
2021-05-19 14:12:46  DEBUG    gateway3      192.168.1.145 | lumi.158d0002e2d755 lumi.ctrl_neutral2.v1 retain: {'alive': 1, 'battery': 100, 'chip_temperature': 35, 'disable_btn0': 0, 'disable_btn1': 0, 'disable_btn2': 0, 'fw_ver': '1.0.0_0022', 'hw_ver': 38, 'load_power': 0, 'load_s0': 0, 'load_s1': 0, 'load_s2': 0, 'load_voltage': 0, 'lqi': 136, 'mains_voltage': 0, 'neutral_0': 'off', 'neutral_1': 'off', 'neutral_2': 'off', 'parent': 'lumi.158d0001001fbc', 'power': 'off', 'poweroff_memory': 0, 'reset_cnt': 6, 'slide_t0': 0, 'slide_t1': 0, 'slide_t2': 0, 'voltage': 3300}
2021-05-19 14:12:46  DEBUG    gateway3      192.168.1.145 | lumi.158d0004abe571 lumi.switch.b1lacn02 retain: {'alive': 1, 'chip_temperature': 28, 'disable_btn0': 0, 'disable_btn1': 0, 'disable_btn2': 0, 'fw_ver': '1.0.0_0026', 'hw_ver': 54, 'load_power': 0, 'load_s0': 0, 'load_s1': 0, 'load_s2': 0, 'load_voltage': 0, 'lqi': 136, 'mains_voltage': 0, 'neutral_0': 'off', 'neutral_1': 'off', 'neutral_2': 'off', 'parent': 'lumi.158d00013e2455', 'power': 'off', 'poweroff_memory': 0, 'reset_cnt': 13, 'slide_t0': 0, 'slide_t1': 0, 'slide_t2': 0, 'voltage': 3300}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup gateway device {'did': '408710730', 'model': 'lumi.gateway.mgl03', 'mac': '0xbc33acfffe7c75e1', 'wlan_mac': '54:EF:44:24:C8:91', 'type': 'gateway', 'fw_ver': '1.4.7_0160', 'online': True, 'init': {'firmware lock': True}, 'device_manufacturer': 'Xiaomi', 'device_name': '1-Smart Hub', 'device_model': 'lumi.gateway.mgl03 ZNDMWG03LM', 'params': [['8.0.2012', None, 'power_tx', None], ['8.0.2024', None, 'channel', None], ['8.0.2081', None, 'pairing_stop', None], ['8.0.2082', None, 'removed_did', None], ['8.0.2084', None, 'added_device', None], ['8.0.2103', None, 'device_model', None], ['8.0.2109', None, 'pairing_start', None], ['8.0.2110', None, 'discovered_mac', None], ['8.0.2111', None, 'pair_command', None], ['8.0.2155', None, 'cloud', None], [None, None, 'pair', 'remote'], [None, None, 'firmware lock', 'switch'], [None, None, 'alarm', 'alarm_control_panel']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup zigbee device {'did': 'lumi.158d0000fa4385', 'mac': '0x158d0000fa4385', 'ieee': '00158d0000fa4385', 'nwk': '55d2', 'model': 'lumi.sensor_magnet.v2', 'type': 'zigbee', 'fw_ver': 0, 'init': {'contact': 0, 'battery': 64}, 'online': True, 'device_manufacturer': 'Xiaomi', 'device_name': '1-main door', 'device_model': 'lumi.sensor_magnet MCCGQ01LM', 'params': [['3.1.85', 'status', 'contact', 'binary_sensor'], ['8.0.2001', 'battery', 'battery', 'sensor']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup zigbee device {'did': 'lumi.158d0001001fbc', 'mac': '0x158d0001001fbc', 'ieee': '00158d0001001fbc', 'nwk': '769b', 'model': 'lumi.plug.v1', 'type': 'zigbee', 'fw_ver': '1.0.0_0090', 'init': {'power': 0, 'switch': 0}, 'online': True, 'device_manufacturer': 'Xiaomi', 'device_name': '1-wood lamp', 'device_model': 'lumi.plug ZNCZ02LM', 'params': [['0.12.85', 'load_power', 'power', 'sensor'], ['0.13.85', None, 'consumption', 'sensor'], ['4.1.85', 'neutral_0', 'switch', 'switch']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup zigbee device {'did': 'lumi.158d000106dd7d', 'mac': '0x158d000106dd7d', 'ieee': '00158d000106dd7d', 'nwk': 'f967', 'model': 'lumi.sensor_ht.v1', 'type': 'zigbee', 'fw_ver': '1.0.0_0001', 'init': {'temperature': 29.59, 'humidity': 55.94, 'battery': 62}, 'online': True, 'device_manufacturer': 'Xiaomi', 'device_name': '1-scuba sensor', 'device_model': 'lumi.sensor_ht WSDCGQ01LM', 'params': [['0.1.85', 'temperature', 'temperature', 'sensor'], ['0.2.85', 'humidity', 'humidity', 'sensor'], ['8.0.2001', 'battery', 'battery', 'sensor']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup zigbee device {'did': 'lumi.158d0001081c53', 'mac': '0x158d0001081c53', 'ieee': '00158d0001081c53', 'nwk': 'd3a5', 'model': 'lumi.sensor_magnet.v2', 'type': 'zigbee', 'fw_ver': 0, 'init': {'contact': 0, 'battery': 70}, 'online': True, 'device_manufacturer': 'Xiaomi', 'device_name': '1-scuba door', 'device_model': 'lumi.sensor_magnet MCCGQ01LM', 'params': [['3.1.85', 'status', 'contact', 'binary_sensor'], ['8.0.2001', 'battery', 'battery', 'sensor']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup zigbee device {'did': 'lumi.158d000112b5fc', 'mac': '0x158d000112b5fc', 'ieee': '00158d000112b5fc', 'nwk': 'ef32', 'model': 'lumi.sensor_motion.v2', 'type': 'zigbee', 'fw_ver': 0, 'init': {'battery': 74}, 'online': True, 'device_manufacturer': 'Xiaomi', 'device_name': '1-downstairs motion2', 'device_model': 'lumi.sensor_motion RTCGQ01LM', 'params': [['3.1.85', None, 'motion', 'binary_sensor'], ['8.0.2001', 'battery', 'battery', 'sensor']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup zigbee device {'did': 'lumi.158d0001144880', 'mac': '0x158d0001144880', 'ieee': '00158d0001144880', 'nwk': '995f', 'model': 'lumi.sensor_motion.v2', 'type': 'zigbee', 'fw_ver': 0, 'init': {'battery': 95}, 'online': True, 'device_manufacturer': 'Xiaomi', 'device_name': '1-downstairs motion', 'device_model': 'lumi.sensor_motion RTCGQ01LM', 'params': [['3.1.85', None, 'motion', 'binary_sensor'], ['8.0.2001', 'battery', 'battery', 'sensor']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup zigbee device {'did': 'lumi.158d000130ed42', 'mac': '0x158d000130ed42', 'ieee': '00158d000130ed42', 'nwk': '2b54', 'model': 'lumi.sensor_smoke.v1', 'type': 'zigbee', 'fw_ver': '1.0.0_0001', 'init': {'smoke density': 0, 'smoke': 0, 'battery': 84}, 'online': True, 'device_manufacturer': 'Honeywell', 'device_name': '1-scuba smoke alarm', 'device_model': 'lumi.sensor_smoke JTYJ-GD-01LM/BW', 'params': [['0.1.85', 'density', 'smoke density', 'sensor'], ['13.1.85', 'alarm', 'smoke', 'binary_sensor'], ['8.0.2001', 'battery', 'battery', 'sensor']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup zigbee device {'did': 'lumi.158d00013e2455', 'mac': '0x158d00013e2455', 'ieee': '00158d00013e2455', 'nwk': '96b6', 'model': 'lumi.plug.v1', 'type': 'zigbee', 'fw_ver': '1.0.0_0032', 'init': {'power': 2.23, 'switch': 1}, 'online': True, 'device_manufacturer': 'Xiaomi', 'device_name': '1-scuba Smart Plug', 'device_model': 'lumi.plug ZNCZ02LM', 'params': [['0.12.85', 'load_power', 'power', 'sensor'], ['0.13.85', None, 'consumption', 'sensor'], ['4.1.85', 'neutral_0', 'switch', 'switch']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup zigbee device {'did': 'lumi.158d0002006d3f', 'mac': '0x158d0002006d3f', 'ieee': '00158d0002006d3f', 'nwk': '3f03', 'model': 'lumi.sensor_motion.aq2', 'type': 'zigbee', 'fw_ver': '1.0.0_0005', 'init': {'illuminance_lux': 14, 'illuminance': 31, 'battery': 82}, 'online': True, 'device_manufacturer': 'Aqara', 'device_name': '1-scuba motion', 'device_model': 'lumi.sensor_motion.aq2 RTCGQ11LM', 'params': [['0.3.85', 'lux', 'illuminance_lux', None], ['0.4.85', 'illumination', 'illuminance', 'sensor'], ['3.1.85', None, 'motion', 'binary_sensor'], ['8.0.2001', 'battery', 'battery', 'sensor']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup zigbee device {'did': 'lumi.158d00021361b3', 'mac': '0x158d00021361b3', 'ieee': '00158d00021361b3', 'nwk': 'a8ba', 'model': 'lumi.sensor_switch.aq2', 'type': 'zigbee', 'fw_ver': '1.0.0_0003', 'init': {'battery': 74}, 'online': True, 'device_manufacturer': 'Aqara', 'device_name': '1-scuba button', 'device_model': 'lumi.sensor_switch.aq2 WXKG11LM', 'params': [['13.1.85', None, 'button', None], [None, None, 'action', 'sensor'], ['8.0.2001', 'battery', 'battery', 'sensor']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup zigbee device {'did': 'lumi.158d0002b6d048', 'mac': '0x158d0002b6d048', 'ieee': '00158d0002b6d048', 'nwk': 'ee40', 'model': 'lumi.sensor_motion.aq2', 'type': 'zigbee', 'fw_ver': '1.0.0_0005', 'init': {'illuminance_lux': 189, 'illuminance': 354, 'battery': 69}, 'online': True, 'device_manufacturer': 'Aqara', 'device_name': '1-entrance motion', 'device_model': 'lumi.sensor_motion.aq2 RTCGQ11LM', 'params': [['0.3.85', 'lux', 'illuminance_lux', None], ['0.4.85', 'illumination', 'illuminance', 'sensor'], ['3.1.85', None, 'motion', 'binary_sensor'], ['8.0.2001', 'battery', 'battery', 'sensor']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup zigbee device {'did': 'lumi.158d0002b93e82', 'mac': '0x158d0002b93e82', 'ieee': '00158d0002b93e82', 'nwk': 'def0', 'model': 'lumi.sensor_motion.aq2', 'type': 'zigbee', 'fw_ver': '1.0.0_0005', 'init': {'illuminance_lux': 7, 'illuminance': 7, 'battery': 69}, 'online': True, 'device_manufacturer': 'Aqara', 'device_name': '1-kitchen motion', 'device_model': 'lumi.sensor_motion.aq2 RTCGQ11LM', 'params': [['0.3.85', 'lux', 'illuminance_lux', None], ['0.4.85', 'illumination', 'illuminance', 'sensor'], ['3.1.85', None, 'motion', 'binary_sensor'], ['8.0.2001', 'battery', 'battery', 'sensor']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup zigbee device {'did': 'lumi.158d0002e2d755', 'mac': '0x158d0002e2d755', 'ieee': '00158d0002e2d755', 'nwk': 'c929', 'model': 'lumi.ctrl_neutral2.v1', 'type': 'zigbee', 'fw_ver': '1.0.0_0022', 'init': {'channel 1': 0, 'channel 2': 0}, 'online': True, 'device_manufacturer': 'Aqara', 'device_name': '1-kitchen light', 'device_model': 'lumi.ctrl_neutral2 QBKG03LM', 'params': [['4.1.85', 'neutral_0', 'channel 1', 'switch'], ['4.2.85', 'neutral_1', 'channel 2', 'switch'], ['13.1.85', None, 'button_1', None], ['13.2.85', None, 'button_2', None], ['13.5.85', None, 'button_both', None], [None, None, 'action', 'sensor']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup zigbee device {'did': 'lumi.158d0004abe571', 'mac': '0x158d0004abe571', 'ieee': '00158d0004abe571', 'nwk': '5ffc', 'model': 'lumi.switch.b1lacn02', 'type': 'zigbee', 'fw_ver': '1.0.0_0026', 'init': {'switch': None}, 'online': True, 'device_manufacturer': 'Aqara', 'device_name': '1-Scuba', 'device_model': 'lumi.switch.b1lacn02 QBKG21LM', 'params': [['4.1.85', 'channel_0', 'switch', 'switch'], ['13.1.85', None, 'button', None], [None, None, 'action', 'sensor']], 'mi_spec': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Setup ble device {'did': 'blt.3.12jm0r568e800', 'mac': '582d3451108c', 'model': 1398, 'type': 'ble', 'online': True, 'init': {}, 'device_manufacturer': 'Xiaomi', 'device_name': '2-CQ-Alarm clock', 'device_model': 'CGD1', 'params': None, 'color_temp': None, 'max_brightness': None}
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Gateway time offset: -0.1930532455444336
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Prepare Gateway
2021-05-19 14:12:48  DEBUG    gateway3      192.168.1.145 | Version: 1.4.7_0160
2021-05-19 14:12:49  DEBUG    gateway3      192.168.1.145 | MQTT connected
2021-05-19 14:12:49  DEBUG    gateway3      192.168.1.145 | gateway <= True
2021-05-19 14:12:49  DEBUG    gateway3      192.168.1.145 | blt.3.12jm0r568e800 retain: {'temperature': 27.2, 'humidity': 57.4, 'battery': 75}
2021-05-19 14:12:49  DEBUG    mini_miio     192.168.1.145 | Send get_properties 128B, recv 144B in 0.3 sec and 1 try
2021-05-19 14:12:58  DEBUG    gateway3      192.168.1.145 | Process BLE Fix {'did': 'blt.3.12jm0r568e800', 'eid': 4102, 'edata': '4402', 'pdid': 1398, 'seq': 78}
2021-05-19 14:13:19  DEBUG    mini_miio     192.168.1.145 | Send get_properties 128B, recv 144B in 0.2 sec and 1 try
2021-05-19 14:13:21  DEBUG    gateway3      192.168.1.145 | gateway <= {'free_mem': 4064, 'ip': '192.168.1.145', 'load_avg': '2.74|2.77|2.76|3/87|11048', 'rssi': 41, 'run_time': 334235, 'setupcode': '365-60-462', 'ssid': 'manado1', 'tz': 'GMT8'}
2021-05-19 14:13:21  DEBUG    gateway3      192.168.1.145 | Gateway time offset: -0.19237351417541504
AlexxIT commented 3 years ago

You need to change firmware lock with enabled logs

deco3690 commented 3 years ago

Ah.. I see what is happening now. I have an automation to turn off switches after 20 min no motion, and the firmware lock is seen as a switch. Thanks for your help, Alexx!

Screenshot 2021-05-20 133914