home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.7k stars 28.85k forks source link

Wiz depracation warning for `color` #111795

Open Anto79-ops opened 4 months ago

Anto79-ops commented 4 months ago

The problem

Hi,

updated to 2024.3.0b0 and received warning for my Wiz integration.

Here to report. thanks!

Logger: homeassistant.components.light
Source: components/light/__init__.py:914
integration: Light (documentation, issues)
First occurred: 6:31:50 PM (1 occurrences)
Last logged: 6:31:50 PM

light.wiz_rgbw_tunable_a1fc86 (<class 'homeassistant.components.wiz.light.WizBulbEntity'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+wiz%22

What version of Home Assistant Core has the issue?

2024.3.0b0

What was the last working version of Home Assistant Core?

2024.2.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Wiz

Link to integration documentation on our website

https://www.home-assistant.io/integrations/wiz/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 4 months ago

Hey there @sbidy, mind taking a look at this issue as it has been labeled with an integration (wiz) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `wiz` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign wiz` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


wiz documentation wiz source (message by IssueLinks)

gambalaya commented 3 months ago

I am seeing this warning too on version 2024.3.0. I noticed this only happens when bulbs are in "effect" mode, e.g. Romance.

min_color_temp_kelvin: 2202 max_color_temp_kelvin: 6535 min_mireds: 153 max_mireds: 454 effect_list: Ocean, Romance, Sunset, Party, Fireplace, Cozy, Forest, Pastel Colors, Wake up, Bedtime, Warm White, Daylight, Cool white, Night light, Focus, Relax, True colors, TV time, Plantgrowth, Spring, Summer, Fall, Deepdive, Jungle, Mojito, Club, Christmas, Halloween, Candlelight, Golden white, Pulse, Steampunk, Rhythm supported_color_modes: color_temp, rgbw _effect: Romance colormode: unknown brightness: null color_temp_kelvin: null color_temp: null hs_color: null rgb_color: null xy_color: null rgbw_color: null friendly_name: Left supported_features: 4

Device info SHRGB1C by WiZ Firmware: 1.31.0 Hardware: ESP01 31

dCatfish commented 3 months ago

My HA version 2024.3.0 don't like effects or RGB-settings/changes either in the WIZ or Philips Hue integration. HA is not able to save effects- or RGB-settings/changes in HA scenes, etc...

Try to create a scene in HA with a RGB WIZ bulb (or similar) with an effect. Save the scene, close it and open it again - Effect is gone... Maybe it works for you.

Old scenes with WIZ-effects works fine, but causes deprecation warning.

This is related to the same problem as the above posts.

carlomoretto27 commented 3 months ago

Im also having the same problem. If a light has an effect assigned, HA doesnt return any data for brightness, color_temp etc. Was working find before updating to 2024.3.x

dcarpio01 commented 3 months ago

This is pretty infuriating. If a set the scene in the scenes page, it shows the proper effect. But as soon as I save and then try to activate the scene, the wiz lights default back to full brightness and warm white. This has to be any easy fix, no?

BlackHawk1912 commented 2 months ago

Got the same problem. Home Assistant Container; Core v2024.3.3; Frontend v20240307.0 Edit: just tried latest version Core v2024.4.1; Frontend v20240404.1 but still experience the issue. I also deleted all wiz devices in HA and re-added them.

dcarpio01 commented 2 months ago

@BlackHawk1912 - I already gave up on setting wiz scenes in home assistant. It's easy to do in node-red.

BlackHawk1912 commented 2 months ago

@dcarpio01 It seems to me, that the bug is new or that there should be some workaround. It was all working for me just yesterday. I had two WiZ bulbs and everything was working fine. I added a third bulb and changes all bulb sockets. Also i recreated the my HA container multiple times (because i was trying to get ZHA/ z2m working) and when trying to update the scene with the new bulb, i noticed that it stopped working.

dcarpio01 commented 2 months ago

@BlackHawk1912 - I just moved all my wiz bulbs from Hubitat to HA, so it seems like new wiz scenes are the issue.

BlackHawk1912 commented 2 months ago

https://github.com/home-assistant/core/issues/85731 seems to be releated (also already commented on there)

BlackHawk1912 commented 2 months ago

Inspecting the scenes.yaml shows, that there are several unset properties in the scene with the WiZ lamp:

     (...)
     supported_color_modes:
      - color_temp
      - rgbw
      effect:
      color_mode:
      brightness:
      color_temp_kelvin:
      color_temp:
      hs_color:
      rgb_color:
      xy_color:
      rgbw_color:
      friendly_name: WiZ RGBW Tunable 1BE560
      supported_features: 4
     (...)

Unfortunatly, setting the effect attribute manually (and leaving the color empty) does not work. The scene does nothing.

@dCatfish Can you please share the yaml configuration of your old scene that still works? (from scenes.yaml)

dCatfish commented 2 months ago

@BlackHawk1912 Here is an old scene that still works, but logs a "does not report a color mode" warning. It's a Wiz RGBW E14 bulb "Cozy" effect scene.

BlackHawk1912 commented 2 months ago

@dCatfish Wow, thank you very much. I ported it to my setup (setting different entities, effects an name) and low and behold IT WORKED!!

The difference between a new (not working) scene and an older, working scene is at follows:

Old:

  entities:
    light.wiz_rgbw_tunable_1be560:
      (...)
      supported_features: 4
      friendly_name: WiZ RGBW Tunable 1BE560
      color_mode: brightness
      brightness: 255
      effect: Cozy
      (...)

New:

  entities:
    light.wiz_rgbw_tunable_1bf196:
      (...)
      effect: Forest
      color_mode: color_temp
      brightness: 255
      color_temp_kelvin: 2202
      color_temp: 454
      hs_color:
      - 29.79
      - 84.553
      rgb_color:
      - 255
      - 146
      - 39
      xy_color:
      - 0.579
      - 0.388
      rgbw_color:
      friendly_name: WiZ RGBW Tunable 1BF196
      supported_features: 4
      (...)
therihawk commented 1 month ago

The fix above doesn't seem to be working anymore, at least not for me. WiZ lights with effects listed in YAML the 'old' way just turn white for me. Very frustrating as this seems to be a simple fix with no action for months.

sbidy commented 3 weeks ago

Hey, I will take a look into this.

BigCrimpin commented 2 weeks ago

Hey, I will take a look into this.

Thanks! I am also having a similar error:

Logger: homeassistant.components.light Source: components/light/init.py:912 integration: Light (documentation, issues) First occurred: 3:56:22 PM (2 occurrences) Last logged: 3:56:22 PM

light.wiz_rgbw_tunable_391e4d (<class 'homeassistant.components.wiz.light.WizBulbEntity'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+wiz%22 light.wiz_rgbw_tunable_3ba563 (<class 'homeassistant.components.wiz.light.WizBulbEntity'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+wiz%22