ebaauw / homebridge-rpi

Homebridge plugin for Raspberry Pi.
Apache License 2.0
305 stars 18 forks source link

Wrong/new location for fan info #178

Open FlyingLemming opened 1 month ago

FlyingLemming commented 1 month ago

On my Raspi 5 with a brand-new installation of Bookworm 64bit, the directory for getting the fan speed info is /sys/devices/platform/cooling_fan/hwmon/hwmon3 instead of .../hwmon2.

No idea about other hardware and OS versions.

ebaauw commented 1 month ago

That’s new for me; I have seen that sometimes hwmon1 is used, but after a reboot (or power cycle?) of the Pi it reverts to hwmon2. Could you please check a couple of times, what path is used after you reboot / power cycle the Pi?

Also, what fan are you using? The standard standalone fan, the fan in the standard case, or a third-party fan?

On a local Pi, I could probably check which path is used, but on a remote Pi (once pigpiod or an alternative will be running on the Pi5), this needs to be done by the script running gon the remote Pi.

Incidentally, I switched to passive cooling, using a heat sink case. The fan in the standard case makes too much noise for my taste. The standalone fan in the standard case seems fine, but I want to use a case. The standard case (with the lid removed to accommodate the standard fan) blocks the GPIO pins.

FlyingLemming commented 1 month ago

Good point. However, I just restarted the Pi three times and the path remains .../hwmon3.

I am using the stand-alone fan ("Raspberry Pi Active Cooler") without any further modifications to it.

In addition, I have a Geekworm X1001 NVMe Shield installed as well as a Geekworm X1200 UPS Shield. Thinking of that – I transferred the OS from the SD card to a NVMe SSD. Might that be the cause...? 🤔

I am only using the software locally. For the time being, I just modfied the path within my RpiInfo.js and it works fine.

ebaauw commented 1 month ago

On a local Pi, I could probably check which path is used

In v1.8.16.