asednev / homebridge-plugin-govee

Govee H-series Thermometer Hygrometer plugin for Homebrige.
Apache License 2.0
53 stars 9 forks source link

Govee H5075: Humidity sensor with incorrect values #63

Open nimda2 opened 2 years ago

nimda2 commented 2 years ago

Describe The Bug: The humidity sensor is retrieved 100% if too much data is retrieved. In total, the data from 6 Govee H5075 are retrieved. These are retrieved continuously.

To Reproduce: Install iobroker Install ioBroker Homebridge Adapter plugins: add and start govee and plugin-govee

Expected behavior: A limit of queries every x seconds would be helpful to prevent wrong values.

Logs:

2022-03-31 18:33:09.844 info    stateChange ham.0.GVH5075AB91.Temperature-Sensor.Current-Temperature {"val":21.5421,"ack":true,"ts":1648744389838,"q":0,"from":"system.adapter.ham.0","user":"system.user.admin","lc":1648744389838}
2022-03-31 18:33:09.841 info    stateChange ham.0.GVH5075AB91.Humidity-Sensor.Current-Relative-Humidity {"val":42,"ack":true,"ts":1648744389837,"q":0,"from":"system.adapter.ham.0","user":"system.user.admin","lc":1648744389837}
2022-03-31 18:33:03.733 info    stateChange ham.0.GVH5075AB91.Temperature-Sensor.Current-Temperature {"val":21.642,"ack":true,"ts":1648744383725,"q":0,"from":"system.adapter.ham.0","user":"system.user.admin","lc":1648744381842}
2022-03-31 18:33:03.729 info    stateChange ham.0.GVH5075AB91.Humidity-Sensor.Current-Relative-Humidity {"val":100,"ack":true,"ts":1648744383725,"q":0,"from":"system.adapter.ham.0","user":"system.user.admin","lc":1648744381841}
2022-03-31 18:33:01.850 info    stateChange ham.0.GVH5075AB91.Temperature-Sensor.Current-Temperature {"val":21.642,"ack":true,"ts":1648744381842,"q":0,"from":"system.adapter.ham.0","user":"system.user.admin","lc":1648744381842}
2022-03-31 18:33:01.846 info    stateChange ham.0.GVH5075AB91.Humidity-Sensor.Current-Relative-Humidity {"val":100,"ack":true,"ts":1648744381841,"q":0,"from":"system.adapter.ham.0","user":"system.user.admin","lc":1648744381841}

Plugin Config:

{
  "description": "Add configuration for your accessories or platforms according to the docs of the plugins.",
  "accessories": [],
  "platforms": [
    {
      "name": "Govee",
      "heaterDevices": [],
      "username": "xxxx",
      "password": "xxxx",
      "apiKey": "xxxx",
      "refreshTime": 30,
      "controlInterval": 12000,
      "platform": "Govee",
      "disablePlugin": false,
      "disableDeviceLogging": false,
      "debug": false,
      "offlineAsOff": false
    },
    {
      "name": "Govee",
      "batteryThreshold": "25",
      "debug": "false",
      "humidityOffset": "0",
      "platform": "GoveeHomebridgePlugin"
    }
  ]
}

Screenshots: temp

Environment: