ha-rpi_gpio: Stopped working / Entities unavailable after update
Hello,
i was using the integration with older versions and this is because when i tried to update to 2024.x.x some months ago, i couldn’t make the integration to work again. Today i tried to update again and if something went wrong i would do rollback to the previous version but i cound’t make it. I’m using a RPi4 and i have a fan connected to pins 4-6-8 (GPIO 14) and this is my setup in configuration.yaml . My entities in version 2024.12.1 are unavailable and in version 2024.12.2 are missing. This is my setup :
HA Core 2025.1.2
binary_sensor:
- platform: rpi_gpio
sensors:
- port: 14
name: "RPi4 FAN"
switch:
- platform: rpi_gpio
switches:
- port: 14
name: "RPi4 Fan"
My previous setup was like :
switch:
- platform: rpi_gpio
ports:
14: RPi4 FAN
but even with a rollback i can’t make it to work again. Any suggestions please ?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20
You were right. I had the fan activated in the operating system. I have disabled it and it now works correctly.
Connect via VNC or with a screen, keyboard and mouse to your raspberry. I’ll upload some images so you can see where the option is.
@mpikosdimitris , it is true that this worked in previous versions. We had to rewrite the integration to support Raspberry Pi 5 and the new library we are using is trying to get exclusive lock in the GPIO pin. If you are not using RP5, you can safely use the old version which will allow you to use the fan setting in parallel. Another option is to move the triggering of the fan when temp is high to HA automation and remove the other setting.
I will need the debug logs as described here: https://github.com/thecode/ha-rpi_gpio?tab=readme-ov-file#reporting-issues It should be the full logs from after you restart HA. The initialization part is the most important part. Please note is be should be from the largest version of the integration. This is the only version we keep updating.