Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Unable to add device ST19 Filament Model ID 23015 #197

Closed
gkrickovic opened this issue Nov 14, 2021 · 8 comments
Closed

Unable to add device ST19 Filament Model ID 23015 #197

gkrickovic opened this issue Nov 14, 2021 · 8 comments
Assignees
Labels
Bug Something isn't working Dependency to pywizlight This issue is related to problems in the backend lib.

Comments

@gkrickovic
Copy link

Logger: homeassistant.components.light
Source: custom_components/wiz_light/light.py:395
Integration: Light (documentation, issues)
First occurred: 11:33:45 PM (1 occurrences)
Last logged: 11:33:45 PM

wiz_light: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 651, in async_device_update
await task
File "/config/custom_components/wiz_light/light.py", line 256, in async_update
await self.update_scene_list()
File "/config/custom_components/wiz_light/light.py", line 395, in update_scene_list
self._scenes = list(_value.values())
AttributeError: 'list' object has no attribute 'values'

@gkrickovic
Copy link
Author

version | core-2021.11.3
installation_type | Home Assistant OS

wizlight --version
wizlight, version 0.4.8

Bulb that was successfully added:
A19 Colors Model ID B23065
Firmware 1.24.0

Bulb that throws this error:
ST19 Filament, Dimmable Model ID 23015
Firmware 1.24.0

@gkrickovic
Copy link
Author

bash-5.1# cat /config/custom_components/wiz_light/manifest.json
{
"version": "0.4.2",
---- SNIP ----

@gkrickovic
Copy link
Author

Bulb that was successfully added:

echo '{"method":"getPilot","params":{}}' | nc -u -w 1 192.168.1.20 38899
{"method":"getPilot","env":"pro","result":{"mac":"a8bb507aa352","rssi":-60,"src":"","state":true,"sceneId":29,"dimming":62}}

Bulb that throws the error:

bash-5.1# echo '{"method":"getPilot","params":{}}' | nc -u -w 1 192.168.1.34 38899
{"method":"getPilot","env":"pro","result":{"mac":"a8bb509f6ab2","rssi":-58,"src":"","state":true,"sceneId":29,"dimming":62}}

I tried updating pywizlight in the "homeassistant" docker container to 0.4.12 using pip install --upgrade, but after it is restarted, it reverts back to 0.4.8.

sbidy added a commit that referenced this issue Nov 14, 2021
@sbidy
Copy link
Owner

sbidy commented Nov 14, 2021

There is an issue with the scenes. I have to reproduce the error with my fil-bulbs.

@sbidy sbidy self-assigned this Nov 14, 2021
@sbidy sbidy added the Bug Something isn't working label Nov 14, 2021
@gkrickovic
Copy link
Author

gkrickovic commented Nov 15, 2021

I removed the integration and installed the commit 8c3939c .

The bulb was detected and added properly, after adding the entry in the config YAML. It shows up in Lovelace and I can turn it on using the slider. However, the slider immediately reverts back to "off" position, leaving the bulb turned on. After that, I am unable to turn if off through the integration. The original error is also logged.

@gkrickovic
Copy link
Author

wizlight off turns it off successfully.

@sbidy sbidy added the Dependency to pywizlight This issue is related to problems in the backend lib. label Nov 16, 2021
sbidy added a commit that referenced this issue Nov 16, 2021
@sbidy
Copy link
Owner

sbidy commented Nov 16, 2021

Please reinstall the integration with version 0.4.3. This should fix the issue.

@gkrickovic
Copy link
Author

It works. Thank you!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working Dependency to pywizlight This issue is related to problems in the backend lib.
Projects
None yet
Development

No branches or pull requests

2 participants