core
core copied to clipboard
blinksticklight: Error on device update!
The problem
I've had my BlinkStick Flex Board plugged in for a few weeks now and have been unable to get Home Assistant to recognize it. At every restart the log displays an error message. I don't remember the exact date I plugged in the blinkstick but it was before the 2022.9.0 core update.
blinksticklight: Error on device update! 11:26:08 AM - (ERROR) Light
I have been unable to run the "sudo blinkstick --add-udev-rule" command either from the ssh addon or by plugging in a keyboard and monitor to the device. In the past I have not had success accessing the 2222(?) port, and plugging in a monitor is faster/easier.
What version of Home Assistant Core has the issue?
2022.9.7
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
blinkstick, light
Link to integration documentation on our website
https://www.home-assistant.io/integrations/blinksticklight
Diagnostics information
No response
Example YAML snippet
configuration.yaml:
`
light: !include light.yaml`
light.yaml:
`#light:
- platform: blinksticklight
serial: BS037347-3.1`
Anything in the logs that might be useful for us?
Logger: homeassistant.components.light
Source: components/blinksticklight/light.py:64
Integration: Light (documentation, issues)
First occurred: 11:26:08 AM (1 occurrences)
Last logged: 11:26:08 AM
blinksticklight: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 493, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 703, in async_device_update
await task
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/blinksticklight/light.py", line 64, in update
rgb_color = self._stick.get_color()
File "/usr/local/lib/python3.10/site-packages/blinkstick/blinkstick.py", line 482, in get_color
if isinstance(get_color_func, collections.Callable):
AttributeError: module 'collections' has no attribute 'Callable'
Additional information
The blinkstick is plugged in to a usb hub with external power and no LED strip. I wanted to make sure Home Assistant recognized the device before I attached lights to it. There is also an APC UPS and a usb to ethernet adapter plugged in to the same hub. Both of those devices communicate without issue.
Ethernet adapter:
APC UPS:
Latest update still has issue. Home Assistant OS 9.2, supervisor-2022.10.0
Logger: homeassistant.components.light
Source: components/blinksticklight/light.py:64
Integration: Light (documentation, issues)
First occurred: October 22, 2022 at 5:54:00 PM (1 occurrences)
Last logged: October 22, 2022 at 5:54:00 PM
blinksticklight: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 493, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 703, in async_device_update
await task
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/blinksticklight/light.py", line 64, in update
rgb_color = self._stick.get_color()
File "/usr/local/lib/python3.10/site-packages/blinkstick/blinkstick.py", line 482, in get_color
if isinstance(get_color_func, collections.Callable):
AttributeError: module 'collections' has no attribute 'Callable'
Home Assistant OS 9.3, supervisor-2022.10.0, core-2022.10.5
Source: components/blinksticklight/light.py:64
Integration: Light (documentation, issues)
First occurred: 7:32:37 AM (1 occurrences)
Last logged: 7:32:37 AM
blinksticklight: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 493, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 703, in async_device_update
await task
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/blinksticklight/light.py", line 64, in update
rgb_color = self._stick.get_color()
File "/usr/local/lib/python3.10/site-packages/blinkstick/blinkstick.py", line 482, in get_color
if isinstance(get_color_func, collections.Callable):
AttributeError: module 'collections' has no attribute 'Callable'
@epenet Apologies for tagging you directly but you where the last person to comment on the blinksticklight component. When you have a moment can you please take a look? I'm still having the issue at every restart.
The problem is inside blinkstick package, which is not compatible with python 3.10. You have to open an issue there: https://github.com/arvydas/blinkstick-python
Edit: there is a PR opened already https://github.com/arvydas/blinkstick-python/pull/84 Since the repository owner doesn't respond, we may need to remove the integration from core.
Thank you, Blinkstick.com appears to have a new program they are working on but the Blinkstick-Python repository seems to be dead. I'm trying to get a response from arvydas on the blinkstick forums but we'll see how that goes.
Again thank you for the help and keep up the amazing work.