homebridge-raspberrypi-temperature icon indicating copy to clipboard operation
homebridge-raspberrypi-temperature copied to clipboard

Temp off in Celsius

Open Src-dk opened this issue 3 years ago • 5 comments

Hi

Thank you for your work! New to this and seing some issues.

Temp of CPU is 8 celsius! Allthough being around 50 celsius in Homebridge. Serial is unknown model 3B(is realy a Zero W)) Firmware 0.0.8 homebridge 1.1.6

is there a offset somewhere?

Src-dk avatar Dec 02 '20 13:12 Src-dk

I have the same problem, the temperature shown in iOS Home is only 4 Celsius.

huangyafei avatar Dec 19 '20 06:12 huangyafei

Hi

Thank you for your work! New to this and seing some issues.

Temp of CPU is 8 celsius! Allthough being around 50 celsius in Homebridge. Serial is unknown model 3B(is realy a Zero W)) Firmware 0.0.8 homebridge 1.1.6

is there a offset somewhere?

I have solved this problem.

Initially, my configuration looked like this:

"accessories": [{
    "accessory": "RaspberryPiTemperature",
    "name": "RaspberryPi CPU Temperature",
    "temperatureMeasurement": "celsius"
}]

I deleted "temperatureMeasurement": "celsius", now it looks like the temperature display is normal.

huangyafei avatar Dec 19 '20 07:12 huangyafei

As @huangyafei said,

"accessories": [{
    "accessory": "RaspberryPiTemperature",
    "name": "RaspberryPi CPU Temperature"
}]

Will solve this problem. Temperature will be in Celsius. Apparently, the conversion to Celsius in code is relevant if the initial temperature is in Fahrenheit.

ziliz-rus avatar Jan 17 '21 17:01 ziliz-rus

The reason is that the value which is read from /sys/class/thermal/thermal_zone0/temp is already provided in Celsius. (Actually in millicelsius) The value is divided by 1000 and then converted further if you have configured "Celsius" as unit, although the value is already in Celsius. Therefore, the correct value is determined if you do not configure a unit.

just-doit avatar May 15 '21 16:05 just-doit

Hi

Thank you for your work!

New to this and seing some issues.

Temp of CPU is 8 celsius!

Allthough being around 50 celsius in Homebridge.

Serial is unknown

model 3B(is realy a Zero W))

Firmware 0.0.8

homebridge 1.1.6

is there a offset somewhere?

I have solved this problem.

Initially, my configuration looked like this:


"accessories": [{

    "accessory": "RaspberryPiTemperature",

    "name": "RaspberryPi CPU Temperature",

    "temperatureMeasurement": "celsius"

}]

I deleted "temperatureMeasurement": "celsius", now it looks like the temperature display is normal.

Tnx 😉

NijremNL avatar Jun 02 '23 20:06 NijremNL