When I started with HA few years ago, I’ve made small manual modifications in order to start my RPI cooling fan on HA startup. I’ve installed rpi_pwm_gpio via HACS and defined my cooling fan as light in configuration.yaml:
And fan was starting up happily on every HA restart…
But today after update to 2024.8.2 this automation is disabled with error:
Automation is unavailable
Actions: Unknown device ‘’
Can anyone suggest what should I add/change to make this startup automation working again, it is really hot these days I do not want that my RPI get a heat stroke
If you post yaml, please properly format it. See point 11 of:
What version did you update from? Because gpio support has been removed from core quite a while ago. You can still use gpio, but you’ll need a custom component for it.
No, you need to use an action on the entity, device actions should be avoided for many reasons. Use the homeassistant.turn_on action instead. (Why is your fan a light?).
If you want to use the brightness as speed, use the light.turn_on action. It used to be called a service in the past. Just search in the automation editor, or see the examples in the docs:
No, you can use the same triggers, you just need a different action type. If only you had formatted your code like I asked, I could have copy/pasted the yaml and changed a line or two…