homebridge-http-temperature-humidity icon indicating copy to clipboard operation
homebridge-http-temperature-humidity copied to clipboard

Difference between Home Humidity reported in Home app

Open phoinixgrr opened this issue 7 years ago • 4 comments

Hi,

Great work!

There is a problem concerning humidity reading in iOS Home app. Even though the Sensor Humidity is correctly reported, the general Room humidity is stuck at 82%.

img_2485

The attached screenshot shows the issue. Home humidity is wrongly reported as 82% ,and sensor humidity correctly at 64% .

HomeBridge Config:

  "accessories": [
    {
        "accessory": "HttpTemphum",
        "name": "Living Room Weather",
        "url": "http://nms.home/scripts/get_sensor.py",
        "httpMethod": "GET",
        "humidity": true,
        "cacheExpiration": 60
    }

HTTP Service output:

curl http://nms.home/scripts/get_sensor.py
{
    "humidity": "64.10",
    "temperature": "18.70"
}

HomeKit Log output:

 systemctl status homebridge.service
● homebridge.service - Node.js HomeKit Server
   Loaded: loaded (/usr/lib/systemd/system/homebridge.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-02-18 12:36:58 EET; 29min ago
 Main PID: 2319 (homebridge)
    Tasks: 14 (limit: 1165)
   CGroup: /system.slice/homebridge.service
           ├─2319 homebridge
           ├─2356 sudo -n journalctl -o cat -n 500 -f -u homebridge
           └─2358 journalctl -o cat -n 500 -f -u homebridge

Feb 18 12:53:23 archie homebridge[2319]: [2/18/2018, 12:53:23 PM] [Living Room Weather] { humidity: '63.50', temperature: '18.60' }
Feb 18 12:54:08 archie homebridge[2319]: [2/18/2018, 12:54:08 PM] [Living Room Weather] HTTP power function succeeded!
Feb 18 12:54:08 archie homebridge[2319]: [2/18/2018, 12:54:08 PM] [Living Room Weather] <Buffer 7b 0a 20 20 20 20 22 68 75 6d 69 64 69 74 79 22 3a 20 22 36 33 2e 35 30 22 2c 0a 20 2
Feb 18 12:54:08 archie homebridge[2319]: [2/18/2018, 12:54:08 PM] [Living Room Weather] { humidity: '63.50', temperature: '18.60' }
Feb 18 12:58:40 archie homebridge[2319]: [2/18/2018, 12:58:40 PM] [Living Room Weather] HTTP power function succeeded!
Feb 18 12:58:40 archie homebridge[2319]: [2/18/2018, 12:58:40 PM] [Living Room Weather] <Buffer 7b 0a 20 20 20 20 22 68 75 6d 69 64 69 74 79 22 3a 20 22 36 34 2e 30 30 22 2c 0a 20 2
Feb 18 12:58:40 archie homebridge[2319]: [2/18/2018, 12:58:40 PM] [Living Room Weather] { humidity: '64.00', temperature: '18.70' }
Feb 18 13:03:04 archie homebridge[2319]: [2/18/2018, 1:03:04 PM] [Living Room Weather] HTTP power function succeeded!
Feb 18 13:03:04 archie homebridge[2319]: [2/18/2018, 1:03:04 PM] [Living Room Weather] <Buffer 7b 0a 20 20 20 20 22 68 75 6d 69 64 69 74 79 22 3a 20 22 36 33 2e 38 30 22 2c 0a 20 20
Feb 18 13:03:04 archie homebridge[2319]: [2/18/2018, 1:03:04 PM] [Living Room Weather] { humidity: '63.80', temperature: '18.70' }

phoinixgrr avatar Feb 18 '18 11:02 phoinixgrr

I have the same issue. Maybe PR37 would fix this too?

sNiklasch avatar May 26 '18 11:05 sNiklasch

Change line 105 of index.js to .setProps({minValue: 0, maxValue: 100}) instead of .setProps({minValue: -100, maxValue: 100}) and it will show humidity correctly

LucaDanelutti avatar Jul 02 '18 18:07 LucaDanelutti

Confirmed as fixed by @LucaDanelutti !

👍

phoinixgrr avatar Jul 02 '18 18:07 phoinixgrr

Sorry, but not working. Installed this plugin, which already has it. And it is not on 105 line, but 126 now. 2019-04-21_20-45-37

But when I connect using HomeKit on iPhone: IMG_7365

DJManas avatar Apr 21 '19 18:04 DJManas