Hello everyone, i’m new on this forum. I would like to know if there is a way to control a strip led RGB directly with raspberry gpio. In my configuration.yaml I put this code:
And in home assistant page I get a switch and a bar to adjust brightness, I would like to get also a color picker and some effects like fade. How can i do?
Has anyone got the “driver: pca9685” working in the last couple of years? I wondering if it should be removed from the documentation. I bought a pca9685 because it looked like it was supported because of this page (https://www.home-assistant.io/integrations/rpi_gpio_pwm/) but that seems to be out-dated documentation.
switched over with the manual install on Raspbian. (was trying hassio before)
added the following to configuration.yaml Note: I am not 100% sure if the api: is required.
api:
light:
- platform: rpi_gpio_pwm
leds:
- name: Some Test Device
driver: pca9685
pins: [1]
type: simple
Install pwmled pip install pwmled
Ran sudo raspi-config --> Interface Options --> Enabled I2C
note: I did this because I was getting the error: FileNotFoundError: [Errno 2] No such file or directory: '/dev/i2c-1'
followed the instructions from here
note: The first two lines are cleanup and may not be needed.
rm pigpio.zip
sudo rm -rf PIGPIO
wget abyz.me.uk/rpi/pigpio/pigpio.zip
unzip pigpio.zip
cd PIGPIO
make
sudo make install
(optional) run sudo i2cdetect -y 1 and made sure you see a “40”. Then run lsmod | grep i2c and sudo i2cdetect -l and make sure they look something like the below…
It should look something like this…