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.03k stars 28.28k forks source link

2024.4 Tuya integration shows wrong color mode #116326

Open bartplessers opened 2 weeks ago

bartplessers commented 2 weeks ago

The problem

Hi, Since HA 2024.4.0 I noticed that HA does not show the color mode correctly of certain Tuya bulbs, The problem only raises for bulbs that support white and color modus, without the abality to change the white color temperature

Than

This makes that all my Tuya bulbs become more or less useless in HA:

Anybody same problem? Any solution?

PS. I'm creating a new issue here because https://github.com/home-assistant/core/issues/115056 was not picked up by the @homeassistant bot

What version of Home Assistant Core has the issue?

core-2024.4.0

What was the last working version of Home Assistant Core?

core-2024.3.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tuya

Link to integration documentation on our website

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

Diagnostics information

I filterd logs on device bf9447a3e3f58bed9af04x

HA 2024.4.4 (with issue)

home-assistant_tuya_2024-04-28T10-39-58.635Z.log

HA 2024.3.3 (no issue)

home-assistant_tuya_2024-04-28T10-45-09.326Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

You can find more detailed information in https://github.com/home-assistant/core/issues/115056 The main issue is that since HA 2024.4.x, it does not recognize the "brightness" modus of this tuya bulb!

What you can see here: same light, but other version of HA:

HA 2024.3.3

321386787-00033c84-93c4-4601-ad1d-3c8cd1ed204c

HA 2024.4.2

321386887-c9660b91-c05e-4a96-a6ce-4eb9d2dca554

So it seems that HA 2024.4.x does not recognize the "brightness" modus of this tuya bulb!

I have a feeling that this problem was introduced with https://github.com/home-assistant/core/pull/110327 resulting in https://github.com/home-assistant/core/commit/770e48d51265d9c613cadd066d7f53d9b0e2498d

To me it seems that following logic is missing in latest version 323729519-428aff4c-2694-4af7-bdf5-d68fe072e229

home-assistant[bot] commented 2 weeks ago

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

Code owner commands Code owners of `tuya` 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 tuya` 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)


tuya documentation tuya source (message by IssueLinks)

ph30n1x commented 2 weeks ago

I am also having experiencing this issue with 5 lights. This was not previously an issue, appears to have originated with the 2024.4 release.

bartplessers commented 2 weeks ago

same problem on 2024.5.0

Please can somebody give this some attention. I'm also using zigbee2mqtt. There is a new release https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.37.0 but ... this release requires at least Home Assistant 2024.4.

I really want to upgrade, but this tuya issue prevents me from doing this :-(

ph30n1x commented 2 weeks ago

Please roll back the changes, this clearly wasn't fully tested and is affecting a specific type of device. As the tuya integration is part of core this needs to be rectified

bartplessers commented 2 weeks ago

just for your interest: originally I created https://github.com/home-assistant/core/issues/115056 . @kelso-utah provided a workaround, but only for very urgent cases, because the provide solution is "This project will no longer continue to iterate"

bartplessers commented 1 week ago

Problem still exist in 2024.5.1 I'm not a developer, but can somebody try to revert the following code: https://github.com/home-assistant/core/commit/770e48d51265d9c613cadd066d7f53d9b0e2498d

I think this is missing: 323729519-428aff4c-2694-4af7-bdf5-d68fe072e229

bartplessers commented 1 week ago

2024.5.3. Still same problem

nollid3 commented 1 week ago

I have the problem as well. Would be nice to have it fix in this months releases