Just a bit of a background story - I have migrated from Ubuntu/Docker to HAOS 6.1 running on Intel NUC.
My blinkstick was working absolutely fine on the old setup, but currently system reports the entity is not found.
Logger: homeassistant.components.light
Source: components/blinksticklight/light.py:49
Integration: Light (documentation, issues)
First occurred: 4:38:52 PM (1 occurrences)
Last logged: 4:38:52 PM
Error while setting up blinksticklight platform for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 250, 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/blinksticklight/light.py", line 39, in setup_platform
add_entities([BlinkStickLight(stick, name)], True)
File "/usr/src/homeassistant/homeassistant/components/blinksticklight/light.py", line 49, in __init__
self._serial = stick.get_serial()
AttributeError: 'NoneType' object has no attribute 'get_serial'
My config file looks like this:
# Lights
light:
- platform: blinksticklight
serial: BS001825-3.0
# Shell commands
shell_command:
blink: python3 /config/blinkstick/blink.py {{cycles}} {{repeats}} {{delay}} {{colour1}} {{colour2}}
pulse: python3 /config/blinkstick/pulse.py
morph: python3 /config/blinkstick/morph.py
I then use it as a service in NodeRed in conjunction with motion sensors, but obviously it doesn’t work right now.
The integration doc BlinkStick - Home Assistant mentions running the following command, but I am not sure if this applies to HA OS?
sudo blinkstick --add-udev-rule
Don’t think you can invoke sudo from HA CLI?