Problem with the setup of PWM LED

Unfortunately I cannot use the PWM LED component as I always get the following error:

Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/", line 233, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/", line 1015, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/", line 248, in async_handle_light_service
    yield from light.async_turn_on(**params)
  File "/usr/lib/python3.4/asyncio/", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/", line 145, in turn_on
  File "/home/homeassistant/.homeassistant/deps/pwmled/led/", line 66, in set
  File "/home/homeassistant/.homeassistant/deps/pwmled/led/", line 75, in _update_pwm
  File "/home/homeassistant/.homeassistant/deps/pwmled/driver/", line 56, in set_pwm
  File "/home/homeassistant/.homeassistant/deps/pwmled/driver/", line 30, in _set_pwm
    self._pi.set_PWM_dutycycle(self._pins[i], raw_values[i])
  File "/home/homeassistant/.homeassistant/deps/", line 1396, in set_PWM_dutycycle, _PI_CMD_PWM, user_gpio, int(dutycycle)))
  File "/home/homeassistant/.homeassistant/deps/", line 977, in _pigpio_command
    sl.s.send(struct.pack('IIII', cmd, p1, p2, 0))
AttributeError: 'NoneType' object has no attribute 'send'

Please help me!

The pigpio-daemon needs to be running. You can start it with sudo pigpiod.

1 Like

Thank you! That solved the problem!

Any idea how to start pigpio in HassOS or HassIO?

Anything new regarding HassOS?