-
Notifications
You must be signed in to change notification settings - Fork 89
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
CL and (Xiaomi) Yeelight RGB bulb shenanigans - (but also quite possible HW failure) #172
Comments
I have to start with an apology because this actually made me laugh out loud, kudos to you for putting up with this crazy behavior. 😂 Unfortunately I don't think I'm going to be able to give you a good answer, but I'm going to explain my initial "hunch" and try to give you some ideas to try that might allow you to modify the CL configuration to prevent these issues. Turning on the logging is a great first step, but they aren't going to be particularly useful by themselves, you really need to watch them as the behavior is happening (i.e. when the behavior is weird, toggle the CL switch off/on which will trigger it to "act", and watch what's logged) Issue No.1 - The armchair black sheepI can't offer any good explanation for why identical model bulbs would behave differently with the configuration you provided. My only suggestions here are to look through the logs when CL sets the bulbs in this state to confirm that it is in fact passing the same settings for each bulb. You should see lines like Issue No.2 - The morse codeMy best guess here is that CL is trying to set values outside of the "acceptable" range of the bulbs. I would confirm that min and max colortemps are within the available range of the bulbs and would try playing with transition and brightness as well. Again, you can look at the logs to see what values CL is setting when this occurs and do the same service call directly in HA to help rule out if it's a CL issue or a HA issue. Issue No.3 - The pink-stuck madnessMy guess for this is the same as issue 2, that CL is trying to set the bulbs to a value outside their range. I have no idea why this would effect one particular bulb and not others, but I would follow the same basic troubleshooting steps. In general it seems that even though these bulbs are the same generation, perhaps they're a different hardware revision or have some other differences that aren't exposed to you. I'm not sure how much I've helped in actually resolving the issues but let me know if you made any progress or have any updates... |
Update:
After those actions were performed the following were observed:
What may be happening here is a faulty socket on the I'll observe some more and return - possibly to close this one down, as it clearly is a hardware issue but not RGB-bulb hardware issue as I originally suspected. |
Update: The new Yeelight RGBW 1S turned RED this morning when lighting up (and while being adjusted by CL). Managed to find an error in the logs at that time. Logs:
|
Hi @claytonjn first of, thank you for all your hard work and effort that you (and all the other contributors) have put into this custom component. Highly appreciated!
Before presenting my issue (which is pretty much summed up in the title - allow me to present what I run and how I run it.
System
Home Assistant Community Store
Home Assistant Cloud
Lovelace
Hardware related to the issue
Four identical Yeelight RGB Gen2 bulbs and 1 Yeelight RGB Gen1 lightstrip, with fully updated firmware on the European (aka German) Yeelight server.
configuration.yaml
integrations/yeelight.yaml
CL configuration
configuration.yaml
switches/circadian_lighting_switches.yaml
Issues
With the exception of the lightstrip I have faced many different issues with the bulbs above when using the provided configuration of CL. I would also like to highlight that the following issues occur only when CL is used and the bulbs (seem to) work fine otherwise.
Issue No.1 - The armchair black sheep
Under "normal" circumstances (to see the definition of ab-normal see below the pink madness issue ), during evening and night times the 3 out of 4 bulbs (
floor
,table
,shelf
) have the same hue whereas the 4th (armchair
) has a way more orange-ish hue, way different than the others. I am not in a position to determine which hue was the correct one, but it is very weird that same bulbs, under the same CL switch/sensor do not seem to produce the same hue and have such a vast difference.If I had to guess, which the correct hue is, I would say that the
armchair
hue is the correct one and the other 3 are wrong. Because I ran CL some years ago with 4 Yeelight GEN1 bulbs and they all "agreed" on this more orange-like hue.Issue No.2 - The morse code
Again during evening and night times I can clearly see prolonged moments of my
shelf
andarmchair
flickering intensely. This is quite irritating and tiring for my eyes.Issue No.3 - The pink-stuck madness
After a specific hour, every day, the
shelf_lamp
turns pink! As time progresses it only gets pinker and pinker. Now here comes the really weird part. As long as the bulb is in this (pink-stuck) state (regardless if CL switch is ON or OFF) it will not change color no matter how I command it (via HA), with the exception of green color. So, in that state, blue is pink , red is pink , yellow is pink and the only exception is green which produces green - don't ask me why!This is something that cannot be amended or reverted and the only "solution" is to turn off the lamp, cut the power from it, restart HA and turn on the lamp, at which point the lamp will assume the "correct" color for some moments but on the next update (assuming CL is ON) it will become pink-stuck again with all the same effects described above.
Another "solution" I recently found to very temporarily fix this issue is to turn off CL and use the official Yeelight application. Using the Yeelight app I turn off the lamp, turn it back on and put it on flow for a while. It will respond much slower at first to the Yeelight app (as if it's ... stuck) but once it starts flowing and changing all possible colors of the rainbow once, then it comes back to normal. Of course if I open CL again, it will become pink-stuck, with all the same effects described above.
I am seriously considering faulty hardware since I searched this repository even in closed tickets and never found something similar. However , since the lamp(s) do not produce any of these issues with CL off and (in case of Issue No.3) the lamp is able to assume all possible hues when it is not in this pink-stuck state, I was also wondering if we could consider a possible bug in CL causing the lamp to glitch.
I have enabled logging at the time of writing this and I will be back with as much as I can:
Let me know if I need to enable anything additionally to help you out - I would really like your feedback on this.
Update: Added logs file
logs.log
The text was updated successfully, but these errors were encountered: