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.42k stars 339 forks source link

After firmware update BGX-5/X1-3001 is always closed #981

Closed darkkatarsis closed 1 year ago

darkkatarsis commented 1 year ago

Info: Gateway: Updated from v1.5.0_0026 to 1.5.4_0090 (custom mgl03_1.5.4_0090_mod20220510.zip by telnet) Gateway type: ZNDMWG03LM BT device: BGX-5/X1-3001

After the update, none of the sensors changes the status related to whether the door has been opened. Action status is reported correctly. I'm not sure about the battery because it's not something that reports at a high frequency. I did not notice any useful logs either system or directly in the integration.

AlexxIT commented 1 year ago

You need to collect integration debug logs

darkkatarsis commented 1 year ago

@AlexxIT Is it ok? Or should I generate some other logs ?

logs:

2023-04-11 09:22:24 [D] 192.168.0.9 [BASE] Prepare gateway mgw with fw 1.5.4_0090
2023-04-11 09:22:24 [D] 192.168.0.9 [BASE] openmiio_agent: The latest version is already running
2023-04-11 09:22:24 [D] 192.168.0.9 [BASE] Applied 0 patches to daemons
2023-04-11 09:22:24 [D] 192.168.0.9 [BASE] MQTT connected
2023-04-11 09:22:37 [D] 192.168.0.9 [LUMI] 54ef4424f543 (lumi.gateway.mgl03) recv {'cloud_link': True}
2023-04-11 09:23:59 [D] 192.168.0.9 [BLEE] 50325f17f418 (2480) recv {'action': 'lock', 'action_id': 0, 'method_id': 2, 'message': 'Unlock outside the door', 'method': 'biological', 'key_id': 2, 'error': None, 'timestamp': '2023-04-11T03:24:14'}
2023-04-11 09:24:02 [D] 192.168.0.9 [BLEE] 50325f17f418 (2480) recv {'action': 'fingerprint', 'action_id': 0, 'key_id': '0x203e0002', 'message': 'Match successful'}
2023-04-11 09:24:11 [D] 192.168.0.9 [BLEE] 50325f17f418 (2480) recv {'contact': False, 'action': 'door', 'action_id': 1, 'message': 'Door is closed', 'timestamp': '2023-04-11T03:24:22'}
2023-04-11 09:31:55 [D] 192.168.0.9 [BLEE] 50325f17f418 (2480) recv {'battery': 59}
2023-04-11 09:32:04 [D] 192.168.0.9 [BASE] Gateway time offset: -1.2007906436920166

diagnostics:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.4.2",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.10",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Warsaw",
    "os_name": "Linux",
    "os_version": "5.15.90",
    "supervisor": "2023.04.0",
    "host_os": "Home Assistant OS 9.5",
    "docker_version": "20.10.22",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "average": {
      "version": "2.3.0",
      "requirements": []
    },
    "roborock": {
      "version": "0.1.2",
      "requirements": [
        "python-roborock==0.1.7"
      ]
    },
    "dahua": {
      "version": "0.5.0",
      "requirements": []
    },
    "xiaomi_gateway3": {
      "version": "3.1.0",
      "requirements": [
        "zigpy>=0.42.0"
      ]
    },
    "huesyncbox": {
      "version": "1.23.0",
      "requirements": [
        "aiohuesyncbox==0.0.21"
      ]
    },
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "discord_game": {
      "version": "4.2.6",
      "requirements": [
        "nextcord==2.0.0a8",
        "addict",
        "aiohttp"
      ]
    },
    "xiaomi_cloud_map_extractor": {
      "version": "v2.2.0",
      "requirements": [
        "pillow",
        "pybase64",
        "python-miio",
        "requests",
        "pycryptodome"
      ]
    },
    "scheduler": {
      "version": "v0.0.0",
      "requirements": []
    },
    "webrtc": {
      "version": "v3.1.0",
      "requirements": []
    },
    "browser_mod": {
      "version": "2.2.1",
      "requirements": []
    },
    "shelly": {
      "version": "1.0.4",
      "requirements": [
        "pyShelly==1.0.2",
        "paho-mqtt==1.6.1",
        "websocket-client"
      ]
    },
    "better_thermostat": {
      "version": "1.0.2",
      "requirements": []
    },
    "spotcast": {
      "version": "v3.6.30",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "xiaomi_gateway3",
    "name": "Xiaomi Gateway 3",
    "config_flow": true,
    "documentation": "https://github.com/AlexxIT/XiaomiGateway3",
    "issue_tracker": "/api/xiaomi_gateway3/24f3eeba-a854-422f-8cdc-9a51122faa5c",
    "codeowners": [
      "@AlexxIT"
    ],
    "dependencies": [
      "http"
    ],
    "requirements": [
      "zigpy>=0.42.0"
    ],
    "version": "3.1.0",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "c33660c",
    "options": {
      "host": "***",
      "token": "***",
      "ble": true,
      "stats": false,
      "debug": [
        "true"
      ],
      "memory": false
    },
    "errors": [
      {
        "name": "custom_components.xiaomi_gateway3.core.mini_miio",
        "message": [
          "192.168.0.9 | Device offline"
        ],
        "level": "WARNING",
        "source": [
          "custom_components/xiaomi_gateway3/core/mini_miio.py",
          328
        ],
        "timestamp": 1681197714.1581845,
        "exception": "",
        "count": 2,
        "first_occurred": 1681197653.2908025
      }
    ],
    "devices": {
      "54ef4424f543": {
        "type": "gateway",
        "model": "lumi.gateway.mgl03",
        "fw_ver": "1.5.4_0090",
        "available": true,
        "decode_time": 28,
        "encode_time": 50735,
        "entities": {
          "alarm": "disarmed",
          "command": {
            "state": "unknown",
            "value": null
          },
          "data": {
            "state": "unknown",
            "value": null
          },
          "cloud_link": {
            "state": "DISABLED",
            "value": "on"
          },
          "led": {
            "state": "DISABLED",
            "value": null
          },
          "gateway": "on"
        },
        "gateways": [
          "54ef4424f543"
        ],
        "stats": {
          "bluetooth_tx": 2366,
          "bluetooth_rx": 401396467,
          "zigbee_tx": 368583,
          "zigbee_rx": 542149,
          "zigbee_oe": 28,
          "network_pan_id": "0x80F5",
          "radio_tx_power": 7,
          "radio_channel": 11,
          "free_mem": 6224,
          "load_avg": "3.02|3.01|3.14|2/106|3842",
          "rssi": -150,
          "uptime": "7 days, 23:10:24"
        }
      },
      "50325f17f418": {
        "type": "ble",
        "model": 2480,
        "fw_ver": null,
        "available": true,
        "decode_time": 37,
        "entities": {
          "action": "",
          "battery": {
            "state": "59",
            "value": 59
          },
          "contact": "off",
          "opening": "off"
        },
        "gateways": [
          "54ef4424f543"
        ]
      }
    }
  }
}
AlexxIT commented 1 year ago

You need to collect more logs. I haven't see data from device in your logs. If you have another Mesh gateways in your account - it can be a problem.

AlexxIT commented 1 year ago

Closed without response