soldag / python-pwmled

Control LEDs connected to a micro controller using pulse-width modulation.
MIT License
11 stars 4 forks source link

How To Install #2

Closed karansoi closed 4 years ago

karansoi commented 4 years ago

I have HASSOS13.3 installed on my RPi4 + 4Gig. I have added this in my config.yaml file `# Example configuration.yaml entry light:

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 186, in _async_setup_platform await asyncio.gather(pending) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 295, in async_add_entities await asyncio.gather(tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 443, in _async_add_entity await entity.async_added_to_hass() File "/usr/src/homeassistant/homeassistant/components/rpi_gpio_pwm/light.py", line 127, in async_added_to_hass is_on=self._is_on, brightness=_from_hass_brightness(self._brightness) File "/usr/local/lib/python3.7/site-packages/pwmled/led/init.py", line 76, in set self._update_pwm() File "/usr/local/lib/python3.7/site-packages/pwmled/led/init.py", line 85, in _update_pwm self._driver.set_pwm(values) File "/usr/local/lib/python3.7/site-packages/pwmled/driver/init.py", line 52, in set_pwm self._set_pwm(self._to_raw_pwm(values)) File "/usr/local/lib/python3.7/site-packages/pwmled/driver/gpio.py", line 34, in _set_pwm self._pi.set_PWM_dutycycle(self._pins[i], raw_values[i]) File "/usr/local/lib/python3.7/site-packages/pigpio.py", line 1396, in set_PWM_dutycycle self.sl, _PI_CMD_PWM, user_gpio, int(dutycycle))) File "/usr/local/lib/python3.7/site-packages/pigpio.py", line 977, in _pigpio_command sl.s.send(struct.pack('IIII', cmd, p1, p2, 0)) AttributeError: 'NoneType' object has no attribute 'send'` Request help on this issue

karansoi commented 4 years ago

I installed he pigpio daemon and got th pwmled working.