To install, open the “Add-ons, Backups and Supervisor” from the Configuration and then click on ADD-ON STORE button. There is an excellent collection of add-ons called “Poeschl Home Assistant Add-ons”, one of them is pigpio which will let you send PWM data on a GPIO pin. The following code for your configuration.yaml file does this:Īdds a sensor that gets the CPU temp from the Pi every 10 secondsĪdds a switch that controls the power to the fan using the… I’m using a Pimoroni Fan SHIM but you can also build your own fan easily using these instructions. ![]() ![]() Hi all! I thought I would share my setup for controlling a cooling fan for a Raspberry Pi 4 since the guides I could find online had stopped working due to changes in the climate integration in Home Assistant. Some parts of this guide is information I found in this thread:Ĭontrolling cooling fan for Raspberry Pi 4 Share your Projects! If you are running HA Core, this guide is not for you, as you can simply install the software needed to control the fan speed. I am using a Geekworm NASPI case, which has a X-C1 power management board that controls the fan using GPIO pin 18, which seems to be more or less standard also for other case fans. This guide is for those that are running Home Assistant OS on a Raspberry (or similar platform) with a case that includes a PWM-controlled CPU fan and where that fan is normally controlled by installing some software. Big thanks to everyone who contributed with comments and solutions to issues that occurred after GPIO support was dropped Try at your own risk, as there is always a chance of breaking HA when installing non-supported add-ons. ![]() The solution still works, but needs an add-on installed through HACS. Before you read this guide, please note that GPIO support was dropped from HA since release 2022.4.
0 Comments
Leave a Reply. |