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.41k stars 338 forks source link

LYWSD03MMC not reporting #1159

Open kiki8907 opened 11 months ago

kiki8907 commented 11 months ago

Hi Alex I am runing homeAsistant on bare metal, installed HACS, and your integration. I have a lot of LYWSD03MMC and they are connected to the same GW (gateway3) ' of them is behaving strange, after some time stops reporting values and bt icon is constantly light up on thermometer. after reseting it it starts working again.

What do you think, is it a faulty thermometer or a bug? a4c1384e5f29 is the strange working device. it has a strange value: encode_time": 603823, other devices dont have this key/value in it. what does this mean? logs below

Thank you Kristian

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.9.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.5",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Budapest",
    "os_name": "Linux",
    "os_version": "6.1.45",
    "supervisor": "2023.09.2",
    "host_os": "Home Assistant OS 10.5",
    "docker_version": "23.0.6",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.33.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "xiaomi_gateway3": {
      "version": "3.3.2",
      "requirements": [
        "zigpy>=0.44.1"
      ]
    },
    "localtuya": {
      "version": "5.2.1",
      "requirements": []
    },
    "radioactivity_hu": {
      "version": "0.4.0",
      "requirements": []
    },
    "webrtc": {
      "version": "v3.3.0",
      "requirements": []
    },
    "openmediavault": {
      "version": "0.0.0",
      "requirements": []
    },
    "securityspy": {
      "version": "1.1.7",
      "requirements": [
        "pysecspy==1.3.5"
      ]
    },
    "sonoff": {
      "version": "3.5.2",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "thermal_comfort": {
      "version": "2.1.1",
      "requirements": []
    },
    "xiaomi_miot": {
      "version": "0.7.13",
      "requirements": [
        "construct>=2.10.56",
        "python-miio>=0.5.6",
        "micloud>=0.3"
      ]
    },
    "water_quality_fvm": {
      "version": "0.2.0",
      "requirements": []
    },
    "frigate": {
      "version": "4.0.0",
      "requirements": [
        "pytz==2022.7"
      ]
    },
    "generic_water_heater": {
      "version": "0.0.3",
      "requirements": []
    },
    "openweathermaphistory": {
      "version": "2.0.2",
      "requirements": []
    },
    "mikrotik_router": {
      "version": "0.0.0",
      "requirements": [
        "librouteros>=3.2.0",
        "mac-vendor-lookup>=0.1.12"
      ]
    }
  },
  "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.44.1"
    ],
    "version": "3.3.2",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "4efeaee",
    "options": {
      "host": "***",
      "token": "***",
      "telnet_cmd": "{\"method\":\"enable_telnet_service\",\"params\":\"\"}",
      "key": "voEBCCPAe3JUTGiu"
    },
    "errors": [],
    "devices": {
      "5ce50cc45bd6": {
        "type": "gateway",
        "model": "lumi.gateway.mgl03",
        "fw_ver": "1.5.0_0102",
        "available": true,
        "decode_time": 11,
        "encode_time": 603824,
        "entities": {
          "alarm": "disarmed",
          "command": {
            "state": "unknown",
            "value": null
          },
          "data": {
            "state": "unknown",
            "value": null
          },
          "led": {
            "state": "DISABLED",
            "value": null
          },
          "gateway": "on"
        },
        "gateways": [
          "5ce50cc45bd6"
        ],
        "stats": {
          "gateway": {
            "firmware": "1.5.0_0102",
            "model": "lumi.gateway.mgl03"
          },
          "miio": {
            "cloud_starts": 1,
            "cloud_state": "cloud_connected",
            "cloud_uptime": "1h24m0s"
          },
          "openmiio": {
            "uptime": "1h24m1s",
            "version": "1.2.1"
          },
          "serial": {
            "bluetooth_rx": 598617,
            "bluetooth_tx": 365,
            "bluetooth_oe": 38,
            "zigbee_rx": 5971,
            "zigbee_tx": 4647,
            "zigbee_oe": 1
          },
          "zigbee": {
            "z3_starts": 1,
            "z3_uptime": "1h24m0s"
          },
          "network_pan_id": "0xEFF8",
          "radio_tx_power": 7,
          "radio_channel": 25,
          "free_mem": 2224,
          "load_avg": "2.26|2.38|2.32|3/91|28091",
          "rssi": -59,
          "uptime": "0 days, 01:20:20"
        }
      },
      "0x00158d0007ba36c2": {
        "type": "zigbee",
        "model": "lumi.sensor_motion",
        "fw_ver": 11,
        "available": true,
        "decode_time": 963,
        "entities": {
          "motion": "off",
          "battery": {
            "state": "63",
            "value": 63
          },
          "battery_low": {
            "state": "DISABLED",
            "value": null
          },
          "chip_temperature": {
            "state": "DISABLED",
            "value": 87
          }
        },
        "gateways": [
          "5ce50cc45bd6"
        ]
      },
      "a4c138ee9aac": {
        "type": "ble",
        "model": 1371,
        "fw_ver": null,
        "available": true,
        "decode_time": 30,
        "entities": {
          "temperature": {
            "state": "22.5",
            "value": 22.5
          },
          "humidity": {
            "state": "74",
            "value": 74
          },
          "battery": {
            "state": "50",
            "value": 50
          }
        },
        "gateways": [
          "5ce50cc45bd6"
        ]
      },
      "a4c1386a1a4c": {
        "type": "ble",
        "model": 1371,
        "fw_ver": null,
        "available": true,
        "decode_time": 355,
        "entities": {
          "temperature": {
            "state": "23.6",
            "value": 23.6
          },
          "humidity": {
            "state": "67",
            "value": 67
          },
          "battery": {
            "state": "100",
            "value": 100
          }
        },
        "gateways": [
          "5ce50cc45bd6"
        ]
      },
      "a4c138454829": {
        "type": "ble",
        "model": 1371,
        "fw_ver": null,
        "available": true,
        "decode_time": 26,
        "entities": {
          "temperature": {
            "state": "24.4",
            "value": 24.4
          },
          "humidity": {
            "state": "61",
            "value": 61
          },
          "battery": {
            "state": "100",
            "value": 100
          }
        },
        "gateways": [
          "5ce50cc45bd6"
        ]
      },
      "a4c1384e5f29": {
        "type": "ble",
        "model": 1371,
        "fw_ver": null,
        "available": true,
        "decode_time": 159,
        "encode_time": 603823,
        "entities": {
          "temperature": {
            "state": "23.9",
            "value": 23.9
          },
          "humidity": {
            "state": "49",
            "value": 49
          },
          "battery": {
            "state": "100",
            "value": 100
          }
        },
        "gateways": [
          "5ce50cc45bd6"
        ]
      },
      "a4c13865905f": {
        "type": "ble",
        "model": 1371,
        "fw_ver": null,
        "available": true,
        "decode_time": 150,
        "entities": {
          "temperature": {
            "state": "22.9",
            "value": 22.9
          },
          "humidity": {
            "state": "75",
            "value": 75
          },
          "battery": {
            "state": "50",
            "value": 50
          }
        },
        "gateways": [
          "5ce50cc45bd6"
        ]
      }
    }
  }
}
AlexxIT commented 10 months ago

Don't know what it can be

ToXinE commented 10 months ago

same here, it happened on one device after I changed the battery.

chenvd commented 10 months ago

same

sentoz commented 7 months ago

same