tonesto7 / homebridge-hubitat-tonesto7

Hubitat Homebridge Plugin
107 stars 34 forks source link

(BUG) {Incorrect temperature reported in Homekit from temperature sensors} #110

Closed ZaherButt closed 2 years ago

ZaherButt commented 3 years ago

Verify the following before opening an trouble issue

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!


About Your Setup

Expected Behavior

Homekit should display correct temperature from devices.

Current Behavior

Homekit does not display the correct temperature from devices. Device that have multi sensors, temp and humidity, the humidity reading is correctly displayed, the temperate is not. For example my Garage is reporting -6.0 from two temperature sensors when according to homebridge logs and hubitat device info - the temperature should be 21C

Steps to Reproduce (for bugs)

This is happening on all my Fibaro motion sensors and my Aqara Humidity sensors. Drivers Xiaomi Temperature Humidity Sensor Fibaro Motion Sensor ZW5

Context

**How has this issue affected you? What are you trying to accomplish? Siri is unable to tell me the correct temperature for rooms in my house.


Please include a copy of any relevant log output to assist in tracking down the bug

tonesto7 commented 3 years ago

I will need to see the output of the device.

ZaherButt commented 3 years ago

{ "name": "Garage Humidity Sensor", "basename": "Xiaomi Temperature Humidity Sensor", "deviceid": "63", "status": "ACTIVE", "manufacturer": "Unknown", "model": "Xiaomi Temperature Humidity Sensor", "deviceNetworkId": "F255", "lastActivity": "2021-08-26T08:38:35+0000", "capabilities": [ "Battery", "PressureMeasurement", "RelativeHumidityMeasurement", "Sensor", "TemperatureMeasurement" ], "capabilities_processed": { "Battery": 1, "PressureMeasurement": 1, "RelativeHumidityMeasurement": 1, "Sensor": 1, "TemperatureMeasurement": 1 }, "capabilities_filtered": [

],
"commands": [
    "resetBatteryReplacedDate"
],
"commands_processed": {
    "resetBatteryReplacedDate": 1
},
"customflags": {

},
"attributes": {
    "battery": 78,
    "batteryLastReplaced": "Aug 19 2021",
    "humidity": 64.4,
    "lastCheckinEpoch": null,
    "lastCheckinTime": null,
    "pressure": 1018.5,
    "temperature": 18.64
},
"attributes_processed": {
    "battery": 78,
    "batteryLastReplaced": "Aug 19 2021",
    "humidity": 64.4,
    "lastCheckinEpoch": null,
    "lastCheckinTime": null,
    "pressure": 1018.5,
    "temperature": 18.64
},
"eventHistory": [
    "2021-08-26 09:38:35.567 | [pressure] | (1018.5 mbar)",
    "2021-08-26 09:38:35.558 | [temperature] | (18.64 \u00b0C)",
    "2021-08-26 09:38:35.562 | [humidity] | (64.4 %)",
    "2021-08-26 08:41:30.88 | [pressure] | (1018.4 mbar)",
    "2021-08-26 08:41:30.87 | [temperature] | (18.73 \u00b0C)",
    "2021-08-26 08:41:30.874 | [humidity] | (65.3 %)",
    "2021-08-26 08:33:08.611 | [humidity] | (65.3 %)",
    "2021-08-26 08:33:08.615 | [pressure] | (1018.3 mbar)",
    "2021-08-26 08:33:08.603 | [temperature] | (18.82 \u00b0C)",
    "2021-08-26 07:44:46.132 | [pressure] | (1018.1 mbar)",
    "2021-08-26 07:44:46.117 | [humidity] | (67.0 %)",
    "2021-08-26 07:44:46.109 | [temperature] | (18.91 \u00b0C)",
    "2021-08-26 07:26:41.432 | [pressure] | (1018.0 mbar)",
    "2021-08-26 07:26:41.415 | [temperature] | (18.97 \u00b0C)",
    "2021-08-26 07:26:41.42 | [humidity] | (67.3 %)",
    "2021-08-26 06:44:40.596 | [pressure] | (1017.8 mbar)",
    "2021-08-26 06:44:40.591 | [humidity] | (69.6 %)",
    "2021-08-26 06:44:40.587 | [temperature] | (19.17 \u00b0C)",
    "2021-08-26 06:36:08.392 | [pressure] | (1017.8 mbar)",
    "2021-08-26 06:36:08.377 | [humidity] | (70.0 %)"
]

}

tonesto7 commented 2 years ago

Sorry, this has sat so long. The temperature data reported in the data you shared shows 18C. So if it's showing -6.0 plugin must think that the temps being sent are in Fahrenheit. Please check the plugin config to make sure the correct temp unit is being used.

github-actions[bot] commented 2 years ago

This issue has been marked stale automatically after no activity for the last 60 days.