Hey guys.
I ran into a problem when I wanted to add a port configuration to add a PWM LED on my Raspberry Pi 3B+ which used Hass OS.
The configuration I added:
light:
- platform: rpi_gpio_pwm
leds:
- name: LED PWM
driver: gpio
pins: [18]
type: simple
And the error log:
Logger: homeassistant.components.light
Source: components/rpi_gpio_pwm/light.py:82
Integration: Light (documentation, issues)
First occurred: January 10, 2022, 23:06:26 (1 occurrences)
Last logged: January 10, 2022, 23:06:26
Error while setting up rpi_gpio_pwm platform for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/rpi_gpio_pwm/light.py", line 82, in setup_platform
driver = GpioDriver(pins, **opt_args)
File "/usr/local/lib/python3.9/site-packages/pwmled/driver/gpio.py", line 25, in __init__
raise ConnectionError('Could not connect to the pigpio daemon')
ConnectionError: Could not connect to the pigpio daemon
What should I do? What is the problem?
Is there any other way to manage GPIO PWM on raspberry pi?
Thanks.