RPI_HAT_POE+ fan control ssh HA OS

I searched in many places and decided to collect all the steps in one place.

How to control fan in RPI-HAT-POE+ ?

  1. In the lower left corner, click on your name and then activate the advanced mode in the menu;

  2. Then install the SSH & Web Terminal add-on → Settings → Add-ons → Add-ons Store;

  3. Generate an SSH key pair. In the Windows/MacOS/Linux terminal, type ssh-keygen;

  4. Enter a name for the keys, e.g. ha and click enter. No password required;

  5. Put the ssh-key into a file called authorized_keys cat ha.pub > authorized_keys ;

  6. Use a USB drive formatted with FAT, ext4, or NTFS and name it CONFIG (case sensitive);

  7. Copy authorized_keys file (no extension) containing your public key, and place it in the root of the USB drive. File needs to be ANSI encoded (not UTF-8) and must have Unix line ends (LF), not Windows (CR LF);

  8. Connect the flash drive to the Raspberry;

  9. Start SSH & Web Terminal and import the authorized_keys file with the ha os import command;

  10. You can now access your device as root over SSH on port 22222 → ssh root@homeassistantip -p 22222;

  11. Edit the config.txt file by command: vi /mnt/boot/config.txt ;

  12. Pressed „i” to enter insert mode ;

  13. Copy and paste:

# PoE+ FAN TEMPERATURE CONTROL
dtoverlay=rpi-poe-plus
dtparam=poe_fan_temp0=20000,dtparam=poe_fan_temp0_hyst=1000
dtparam=poe_fan_temp1=40000,dtparam=poe_fan_temp1_hyst=5000
dtparam=poe_fan_temp2=45000,dtparam=poe_fan_temp2_hyst=5000
dtparam=poe_fan_temp3=50000,dtparam=poe_fan_temp3_hyst=5000
  1. Pressed ESC followed by :x (to save file and exit);
  2. Reboot HA for config.txt changes to take effect.

If there is already a description of how to do this somewhere, I apologize, but I couldn’t find it

2 Likes