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

CPU Temperatur is only 4°C

Open meltinsands opened this issue 3 years ago • 2 comments

Hi, the plugin works on my Raspberry Pi and I use C instead of F. But anyhow the temperature is between 3°C and 5°C instead of 39°C etc. I tried to use the multiplier for Orange Pi, but then the plugin does not work any longer. What can I check to solve this issue?

meltinsands avatar Apr 27 '21 10:04 meltinsands

See issue https://github.com/YinHangCode/homebridge-raspberrypi-temperature/issues/14

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