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

Fixed color temp. bulbs not working after upgrade from 0.4.2 #211

Closed
zsilbi opened this issue Dec 16, 2021 · 5 comments
Closed

Fixed color temp. bulbs not working after upgrade from 0.4.2 #211

zsilbi opened this issue Dec 16, 2021 · 5 comments
Assignees
Labels
Bug Something isn't working fixed but in review

Comments

@zsilbi
Copy link

zsilbi commented Dec 16, 2021

Hello!

Recently upgraded from 0.4.2 to 0.4.4 and lost connection to my E27 filament bulbs: https://www.wizconnected.com/en/consumer/products/8718699787332/

This is the dimmable only version. (color temperature is fixed)

2021-12-16 08:00:55 ERROR (MainThread) [homeassistant.components.light] Error while setting up wiz_light platform for light
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/wiz_light/light.py", line 47, in async_setup_entry
    wizbulb = WizBulbEntity(
  File "/config/custom_components/wiz_light/light.py", line 75, in __init__
    self._attr_min_mireds = self.get_min_mireds()
  File "/config/custom_components/wiz_light/light.py", line 178, in get_min_mireds
    self._bulbtype.kelvin_range.max
AttributeError: 'NoneType' object has no attribute 'max'

All my other bulbs (E14, GU10) were still working correctly.

I tried deleting and re-adding the intergration for these bulbs.
The integration was successfully added but no devices were present in them.

After downgrading to 0.4.2, everything works as intended.

Thanks,
zsilbi

@zsilbi zsilbi changed the title Some bulbs not working after upgrade Fixed color temp. bulbs not working after upgrade Dec 16, 2021
@zsilbi zsilbi changed the title Fixed color temp. bulbs not working after upgrade Fixed color temp. bulbs not working after upgrade from 0.4.2 Dec 16, 2021
@sbidy sbidy self-assigned this Dec 16, 2021
@sbidy sbidy added the Bug Something isn't working label Dec 16, 2021
@sbidy
Copy link
Owner

sbidy commented Dec 16, 2021

I cross-checked that issue and in my test setup with exactly that type of bulb - ESP06_SHTW1_01 (this is the controller name for the ST64) with no issues.

Can you please run pip show pywizlight and check that you are running on the latest version (0.4.13)?
If not, install it with pip install pywizlight==0.4.13 or restart HASS after you updated the integration.

The ST64 is a Tunable-White bulb, so there should be a warm-white and cold-white functionality.
I will cross-check again with a Dimmable White (SHDW) bulb with no color temperature (kelvin).

sbidy added a commit that referenced this issue Dec 16, 2021
@zsilbi
Copy link
Author

zsilbi commented Dec 16, 2021

The ST64 is a Tunable-White bulb, so there should be a warm-white and cold-white functionality.

I think there are 2 versions of ST64. (at least according to the website)
If I use 0.4.2, there is only a brightness slider in HA, there is no option to change the color temp.

I don't have shell access to the core at the moment so I can't check the pywizlight version. (I am running the latest HassOS 7.0 inside a VM with core-2021.12.2.)

@zsilbi
Copy link
Author

zsilbi commented Dec 16, 2021

Just checked the bulb type: ESP06_SHDW1_01

@sbidy
Copy link
Owner

sbidy commented Dec 16, 2021

Now fixed in Release v0.4.5

@bdraco
Copy link

bdraco commented Feb 15, 2022

This can be closed as its confirmed fixed in the core version

@sbidy sbidy closed this as completed Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working fixed but in review
Projects
None yet
Development

No branches or pull requests

3 participants