I searched in many places and decided to collect all the steps in one place.
How to control fan in RPI-HAT-POE+ ?
-
In the lower left corner, click on your name and then activate the advanced mode in the menu;
-
Then install the
SSH & Web Terminal
add-on → Settings → Add-ons → Add-ons Store; -
Generate an SSH key pair. In the Windows/MacOS/Linux terminal, type
ssh-keygen
; -
Enter a name for the keys, e.g.
ha
and click enter. No password required; -
Put the ssh-key into a file called authorized_keys
cat ha.pub > authorized_keys
; -
Use a USB drive formatted with FAT, ext4, or NTFS and name it CONFIG (case sensitive);
-
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); -
Connect the flash drive to the Raspberry;
-
Start SSH & Web Terminal and import the
authorized_keys
file with theha os import
command; -
You can now access your device as root over SSH on port 22222 →
ssh root@homeassistantip -p 22222
; -
Edit the config.txt file by command:
vi /mnt/boot/config.txt
; -
Pressed „i” to enter insert mode ;
-
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
- Pressed ESC followed by :x (to save file and exit);
- 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