Active Cooler not recognized (Pi 5, M.2 HAT+)

Hello everyone,

I recently purchased a Raspberry Pi 5 along with a Waveshare M.2 HAT+ (link below), which I am using together with an SSD. Overall, everything works as expected, except for the active cooling on the HAT.

I have root access via port 22222 and added the following parameters to /mnt/boot/config.txt for testing purposes:

dtparam=fan_temp0=35000
dtparam=fan_temp0_hyst=5000
dtparam=fan_temp0_speed=175

Unfortunately, this had no effect. The fan does not spin at all, not even briefly during startup. The fan is connected to the designated 4-pin header. I have verified that the pins are intact, the fan spins freely, the cables are undamaged, and the connector appears to be fine.

Initially, this investigation started while trying to monitor the fan speed; however, there is no cooling_fan directory present under /sys/devices/platform/.

The Raspberry Pi is currently running at approximately 52 °C (monitored via the system monitor integration), so the fan should already be active.

Is there anything I might be overlooking, or has anyone encountered a similar issue with this HAT?

Thank you in advance for any advice or suggestions.

Edit: After further testing, I noticed that the fan does briefly spin up during system startup, but then stops again and does not turn on afterwards, even when the temperature exceeds the configured thresholds.

It likely needs a driver, which HAOS doesn’t have and likely will never have.
If you find a way to add one to HAOS, it will be gone the next time you update HAOS.
I mean, you can ask for it here: home-assistant · Discussions · GitHub but I wouldn’t hold my breath.
You May want to change to a VM and install the device in the base OS, or use container HA and do the same. HAOS, not so much.
Or just add a fan that is on all the time and connect it to 5v like most people do.

Sorry for the delayed reply, I had assumed that email notifications were enabled.

The issue turned out to be a defective fan on the HAT board. A few days later, I tested a different fan via the 4-pin header, which worked flawlessly with the same setup. Since I was unable to obtain a replacement for the original fan, I purchased a new unit instead and replaced it a few minutes ago. The system is now operating as expected and the fan control works without any problems.