-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2024.4 Tuya integration: lights white/color mode not updated #115056
Comments
extra info: after some investigation, I noticed that this problem only occurs with Tuya lights that only support [white + color] |
Are you sure this light has the capability to change color temperature? Or does it have only white + color?
Seems that HA is not aware anymore of the white capabilities of the bulb if it does not support colortemp (CCT) |
Hi everyone, I installed a previous version of HA (2023.3.1) on my proxmox server. Here this problem does not occur.
What I did:
Version 2024.3.1: shows the correct state of the bulb |
FYI @Kelso-Utah |
Here is some other interesting thing: What you can see here: same light, but other version of HA: HA 2024.3.3HA 2024.4.2So it seems that HA 2024.4.x does not recognize the "brightness" modus of this tuya bulb! |
I got same problem. |
Created a new issue on |
Yup, I started suffering from this recently, "supported_modes" comes back only with "hs", whereas a few weeks ago it was coming back with "brightness" as well. Except even then I couldn't actually change to "brightness" from turn_on - once HA set the light to "hs", it was stuck in "hs". Now it's stuck in "hs" every single time I make any sort of change from HA. I am suspicious of 770e48d. |
With 770e48d, it looks like WORK_MODE must be "white" to get brightness. How do I work out what device.category is of my particular devices? EDIT: looks like category == "dj" from device info > device diagnostics. And I can see data.status.work_mode = "white" whenever the tuya app was the last set to white, and HA hasn't come along and fiddled with the settings yet. Alas, as soon as HA fiddles with the brightness (not just power - power toggle leaves the settings as they were), data.status.work_mode reverts to "colour" (I praise the developers for their proper spelling of "colour"). I can't find a way of getting work_mode back into "white". Also, the GUI can't do it, which tells me it's not my fault. |
device info > device diagnostics 2023.3.32024.4.3 |
@spacelama To me it seems that following logic is missing in latest version |
hi @emontnemery, @kamaradclimber, @lellky , @Orhideous , @MartinHjelmare Do you mind taking a look at this issue? |
Hi! Sorry, but I don't think I can help. I review the linked PR, but I have no understanding of the inner workings here. /Lellky |
FYI. Problem still exist in 2024.4.4 |
hi @homeassistant , is there any way to add the label "integration: tuya" to this issue? On other issues, I see Maybe the bot is not triggered because initialy I forgot to mention the integration in the OP...? |
Experiencing this issue and it's only for lights that have white +RGB (no white temperature). Since upgrading to 2024.4, five of my lights only show HS colour mode and randomly go to the RGB lights when triggered by HA. The tuya app can change them back to white but goes back to RGB due to HA (even when the automation is only to turn on with no other settings) |
same problem on 2024.5.0 Please can somebody give this some attention. I really want to upgrade, but this tuya issue prevents me from doing this :-( |
Hi @Kelso-Utah , What do you exactly mean with Smartlife integration? So I'm a bit confused... |
Hi @Kelso-Utah , thanx for pointing me in the good direction! The Good
The Bad
The Ugly
So it was good testing this, but it can't be the final solution. Thanx again, |
2024.5.1 I need some Xanax |
the issue must be fixable, it's only become and issue recently. |
I too experience this since starting HA server right at version 2024.4 so I therefore never saw the White mode in those. In fact, it caused me some grief trying to figuring out what I was doing wrong until some search indicated the issue to be a newly introduced bug. In Tuya, there is a specific tab for me to set White mode and brightness while the other allow color selection. The bulb switch automatically that way. If I use tuya to open white 80%, all is fine and I can switch to any color/level or use scene. In Tuya I can do any color and brighness but cannot activate while mode, when trying the bulb light up yellow 100% (which is way dimmer than white mode). If I set the bulb in white in Tuya than only use Toggle/On/Off in HA it will allow to switch. But changing any parameter in HA cause the bulb to go into color mode instead without being able to return to white mode from within HA trigger. It just seem that White mode is not exposed to HA. Zak |
Given the fact that all of my Tuya bulbs are affected by this, this is extremely annoying. Had to downgrade to core 2024.3.1 to make this all work. Would it be possible to fix this by some other way? Create a custom script or whatever that takes care of the Tuya bulbs? I'm currently using 12 Gosund WB4 bulbs soooooooo yeah. Has anyone had any luck setting up local Tuya with these? |
2024.5.3. Still same problem |
@bartplessers , since no one's actively working on the problem, updating this issue at every single release isn't going to achieve anything other than contribute noise to the issues database. I did briefly look at reverting the commit we brought into question, but reverting that and likewise going back to the previous version of the code didn't fix the problem for me, but I'm not yet confident that I was correctly running the code in my testing container. |
can you investigate this further? I'm not a developer, but not afraid of VSCode and git. Is there a good newbie tutorial how to revert that piece of code and run it in a sandbox? Grtz |
Tested on TY-02-4CH (RGBW controller) and works well |
Looks like the issue is still ongoing, as no updates to Tuya integration seems to fix it. |
For anyone waiting on this fix, I would just recommend installing my code change as a custom integration as described above until it is approved, merged, and released. It seems it can take a long time to get bugfixes merged. |
Hey There, Logger: homeassistant.config_entries Error setting up entry e@mail.com for tuya I hope somebody can figure this out because I'm way to uninformed. |
Not sure about that issue, but do you have all the following files in your
|
Oh, that could be the problem. In didn't change anything in the folder I downloaded, but the things that were said in this thread. Missing Files: Where do I get these? |
dont worry about pycache. all the files should come from the main homeassistant core repo. then you just need to copy the modified light.py file from the PR, and update the version in the manifest json file. |
Thanks for the Files. I added all of them, but it seems like the issue is still there. Logger: homeassistant.config_entries Error setting up entry e@mail.com for tuya Maybe you see the error here. |
i am not sure... is HA updated to latest version? |
I think so, on my updates page is nothing shown. |
Hi. Is there maybe a solution now integrated in recent 2025 version? |
Proposed fix is still not merged: #126242 Please put a 👍 on it |
@wedsa5 did you say you had a short fix for this I have the same problem currently works through Alexa, but on the Home assistant dash ive limited it to only turn on turn off options on all my lights |
I ended up resorting to tuya local, where I simply selected the rgbcw
bulbs, that kinda works.
…On Wed, 5 Feb 2025 at 12:04, jonnylees88 ***@***.***> wrote:
@wedsa5 <https://github.com/wedsa5> did you say you had a short fix for
this I have the same problem currently works through Alexa, but on the Home
assistant dash ive limited it to only turn on turn off options on all my
lights
—
Reply to this email directly, view it on GitHub
<#115056 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQYIMBLLUCYCHGQWTCKB6ND2OHV2HAVCNFSM6AAAAABF2XUNYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZWGQYTOMZYGI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Looks like it is finally under review... |
@arturkonczalski where you seen this, I tried to do the Tuya local but I have over 100 bulbs would just take too long where Alexa does it anyway |
Nothing has changed on this? |
Yeah, very little and slow progress... |
Nope, it's been showing that for months, and no attempts to prod frenck in the pull request itself has been seen. I actually suspect this is github at fault. Github user notifications are awful - I encountered this for my own projects, not getting notifications that people have opened up bugs against my stuff, or commented on existing bugs. You can't really tune what notifications are sent. One project whose list I'm subscribed to spams its notifications to my github inbox. I go to watch a particular bug in that project and find it thinks I'm already subscribed to it. No, no I'm not github! I could easily see that someone isn't getting notifications for comments on some individual pull requests that person has responded to in the past. Once a notification drops below all your other notifications, you'll never see it again, and what's 1 open pull request waiting for your input against 1000 others? (At least I hope it's not because he's employed by the competitor of Tuya) |
I think it’s more insane that only one person can approve something like this, given the scale of the HA project. |
Trying Why is a Pull request for a fix taking so long? in the community forum. |
Ah thankyou! So we're not waiting for frenck (won't tag him because: ) he's not maintainer responsible for tuya after resigning from tuya maintainership. Pull request 133921 So @tuya, where are we now? Seems it was counterproductive to bring the tuya plugin development under the umbrella of the home assistant project however. When this was an external integration, weren't bugs fixed? |
Ah, there is the problem, as frenck is tagged as responsible here... |
@wedsa5 : HELP! So my current situation is a light that supports brightness and white with color temp (but no color) So I'm a but stuck now :-( Would you mind taking a closer look at this? kind regards, |
Is it possible that this could be fixed with Xtend Tuya (https://github.com/azerty9971/xtend_tuya) instead? |
I tried installing Xtend Tuya and it didn't correct the issue. I also tried using Local Tuya to manually link with a non-color-control white setting, which actually didn't seem to exist at all in the Tuya Development portal. It makes me think that Tuya dropped support for that altogether, although it does still work in their Smart Life app. |
I didn't mean to imply Xtend Tuya fixes the problem as-is. I mean could the fix be implemented in Xtend Tuya. |
The problem
Hi,
Since HA 2024.4.0 I noticed that HA does not show the color mode correctly of my Tuya bulbs.
So
This makes that all my Tuya bulbs become more or less useless in HA:
Anybody same problem?
Any solution?
Kind regards,
Bart Plessers
What version of Home Assistant Core has the issue?
core-2024.4.1
What was the last working version of Home Assistant Core?
core-2024.3.x
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
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: