metbosch / homebridge-http-temperature

HomeBridge HomeKit Plugin for HTTP temperature endpoints
https://www.npmjs.com/package/homebridge-http-temperature
Apache License 2.0
33 stars 18 forks source link

Humidity does'nt work #34

Open Cavas17 opened 1 year ago

Cavas17 commented 1 year ago

Hello,

Like the issue thread #31, humidity always show 0.

In Homebridge UI I see this warning message : This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "Error: Invalid value received" (object). See https://homebridge.io/w/JtMGR for more info.

However my URL return 58 at this time.

Here is my JSON :

{
    "accessory": "HttpHumidity",
    "name": "Humidite cabinet",
    "url": "http://10.0.1.103/core/api/jeeApi.php?apikey=4pyz8UFyJrbQUiGqQbj0u6ACJGtX6J2C&type=cmd&id=3624",
    "field_name": "",
    "_bridge": {
      "username": "0E:83:DD:29:58:C9",
      "port": 55198
     }
 }

Any idea ? Thanks

metbosch commented 7 months ago

If field_name is empty the plugin returns the plain data from endpoint after checking that its a number. @Cavas17 Can you run the test with "debug": true option and provide the debug logs to check the values that plugin receives?