Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gateway and Devices not showing up in HA #1060

Closed
milobt opened this issue May 23, 2023 · 2 comments
Closed

Gateway and Devices not showing up in HA #1060

milobt opened this issue May 23, 2023 · 2 comments
Labels
question Further information is requested

Comments

@milobt
Copy link

milobt commented May 23, 2023

Home Assistant 2023.5.3
Supervisor 2023.04.1
Operating System 10.1
Xiaomi Gateway 3: v3.2.1

Home assistant finds the gateway and its IP and can telnet.
I have created a service for the cloud account and then used that to create a service for the gateway, but the gateway, nor the attached bluetooth device load.

Under config/.storage/xiaomi_gateway3/ I have files for:

devices.json:

{
  "version": 1,
  "minor_version": 1,
  "key": "xiaomi_gateway3/devices.json",
  "data": {}
}

and

[email address].json

{
  "version": 1,
  "minor_version": 1,
  "key": "xiaomi_gateway3/[email_address].json",
  "data": [
    {
      "did": "1005266473",
      "uid": 1759982656,
      "token": "[redacted]",
      "name": "Kitchen Presence Sensor",
      "pid": 16,
      "localip": "176.252.78.255",
      "mac": "DC:ED:83:8D:5E:B9",
      "bssid": "",
      "longitude": "0.00000000",
      "latitude": "0.00000000",
      "show_mode": 1,
      "model": "linp.sensor_occupy.hb01",
      "permitLevel": 16,
      "isOnline": true,
      "spec_type": "urn:miot-spec-v2:device:occupancy-sensor:0000A0BF:linp-hb01:2:0000C824",
      "extra": {
        "isSetPincode": 0,
        "pincodeType": 0,
        "fw_version": "2.1.1_0159",
        "isSubGroup": false,
        "showGroupMember": false,
        "split": {}
      },
      "orderTime": 1684834869,
      "freqFlag": true,
      "hide_mode": 0,
      "cnt": 16,
      "comFlag": 129
    },
    {
      "did": "1005838671",
      "uid": 1759982656,
      "token": "[redacted]",
      "name": "Lounge Presence Sensor",
      "pid": 16,
      "localip": "176.252.78.255",
      "mac": "64:9E:31:4F:B9:E9",
      "bssid": "",
      "longitude": "0.00000000",
      "latitude": "0.00000000",
      "show_mode": 1,
      "model": "linp.sensor_occupy.hb01",
      "permitLevel": 16,
      "isOnline": true,
      "spec_type": "urn:miot-spec-v2:device:occupancy-sensor:0000A0BF:linp-hb01:2:0000C824",
      "extra": {
        "isSetPincode": 0,
        "pincodeType": 0,
        "fw_version": "2.1.1_0159",
        "isSubGroup": false,
        "showGroupMember": false,
        "split": {}
      },
      "orderTime": 1684834804,
      "freqFlag": true,
      "hide_mode": 0,
      "cnt": 16,
      "comFlag": 129
    },
    {
      "did": "332649613",
      "uid": 1759982656,
      "token": "[redacted]",
      "name": "Gateway",
      "pid": 0,
      "localip": "192.168.1.239",
      "mac": "64:90:C1:79:63:A0",
      "ssid": "BeattieWiFi",
      "bssid": "00:EB:D8:87:EA:3A",
      "rssi": -38,
      "longitude": "0.00000000",
      "latitude": "0.00000000",
      "show_mode": 1,
      "model": "lumi.gateway.mgl03",
      "permitLevel": 16,
      "isOnline": true,
      "spec_type": "urn:miot-spec-v2:device:gateway:0000A019:lumi-mgl03:2",
      "extra": {
        "isSetPincode": 0,
        "pincodeType": 0,
        "fw_version": "1.5.5_0006",
        "isSubGroup": false,
        "showGroupMember": false,
        "split": {}
      },
      "orderTime": 1684837437,
      "freqFlag": true,
      "hide_mode": 0,
      "cnt": 8,
      "comFlag": 129
    },
    {
      "did": "73902983",
      "uid": 1759982656,
      "token": "[redacted]",
      "name": "Video camera",
      "pid": 0,
      "localip": "192.168.1.130",
      "mac": "78:11:DC:79:6D:32",
      "ssid": "BeattieWiFi",
      "bssid": "68:FF:7B:2A:CC:D3",
      "longitude": "0.00000000",
      "latitude": "0.00000000",
      "show_mode": 1,
      "model": "isa.camera.df3",
      "permitLevel": 16,
      "isOnline": false,
      "spec_type": "urn:miot-spec-v2:device:camera:0000A01C:isa-df3:1",
      "extra": {
        "isSetPincode": 0,
        "pincodeType": 0,
        "fw_version": "5.5.1.243",
        "isSubGroup": false,
        "showGroupMember": false,
        "split": {}
      },
      "orderTime": 1600460158,
      "freqFlag": true,
      "hide_mode": 0,
      "comFlag": 129
    }
  ]
}

The gateway is on the same wifi SSID as my HA instance, WPA2 encrytion, same subnet and fixed IP.
I can't control the 2.4GHz channel width and can't tell which it is using.
I have had this working once with all devices, when on Home Assistant 2023.5.2, but then I updated my mesh network router and then I have have never been able to get the gateway and devices to show again.

I tried rolling back to 2023.5.2 and earlier snap shots and still no luck.

Not sure if this is a HA, integration bug, network or Xiaomi server related issue, but have tried all I can relating to my network, so believe it to be a HA, integration or Xiaomi issue.

Any help greatly appreciated.

@rezmus
Copy link

rezmus commented May 23, 2023

https://github.com/AlexxIT/XiaomiGateway3#supported-firmwares
#1057

@AlexxIT AlexxIT added the question Further information is requested label May 25, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented May 25, 2023

Your gateway firmware unsupported

@AlexxIT AlexxIT closed this as completed May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants