[resolved] Raspberry 5 fan speed no longer readable

Hi,

I happened to notice that the fan speed of my Raspberry 5 hasn’t been readable for a few days. I get this error:

Command failed (with return code 1): cat /sys/devices/platform/cooling_fan/hwmon/hwmon3/fan1_input

The integration looks like this:

- sensor:
  name: Pi5 Fan Speed
  unique_id: Pi5_fan_rpm
  scan_interval: 10
  command: 'cat /sys/devices/platform/cooling_fan/hwmon/hwmon3/fan1_input'
  unit_of_measurement: "RPM"
  value_template: "{{value}}"

As I said, this worked fine until recently. The problem occurred after a reboot due to an ESPHome update, but there shouldn’t be any connection… A reboot didn’t help.
I’m grateful for any ideas!

Greetings Michael

1 Like

I found the problem: The path got cjanged (Whyever). Now I use

command: 'cat /sys/devices/platform/cooling_fan/hwmon/*/fan1_input'

and it works…

1 Like

Is there a way to control the fan?

It struck me it never runs but the raspberry pi gets pretty warm :hot_face: