-
Notifications
You must be signed in to change notification settings - Fork 586
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
Use color picker white point to switch to white mode. #182
Conversation
@ultratoto14 seems to function as intended. However, did find another bug. If you change the brightness of the lamp, the previous color value is taken into account instead of the last assigned mode (white/color). |
@FeikoJoosten can you describe a little more the steps for your brightness issue ? |
@ultratoto14 I have the lamp configured as followed. With the setup from the screenshot. The lamp is set to white with a low brightness. |
On the screenshot, the white point is not centered, it means HA thinks your device is in color mode. |
Can you enable the debugging, do the steps and post here the log file ? |
Per your request here are the logs when changing the light settings.
Full log: home-assistant.log |
Hi @FeikoJoosten thanks for the logs. What we can see is that the HA light does not receive any data from the device, all the decrypted payload are empty.
Can you set a min value of 25 as you showed in your post and check again ? |
The issue still occurs if I set the brightness min to Included updated log from the moment I've set the min brightness to Edit: Gif of issue where the lamp turns on again in Lovelace. |
I had this issue before, when you set a value out of the range, the device may fail. Can you try to physically switch off and on the device ? |
Hmm and now I have a feeling I might need to reinstall LocalTuya.
|
You can first try to remove the entity from the integration page and restart HA first. @postlund, this error mentioned by FeikoJoosten, also occurred sometimes on my setup, maybe it's linked to YAML device configuration migration. Are you aware of that one ? Is it problematic or an expected behavior ? |
Okay, readding the light and with the change from this PR resolves all of my issues. The light seems to function properly! |
@ultratoto14 I think I've seen it in some other issue before, I don't know what has happened but I sure do want know. If you can manage to replicate, I would like to know how and also see the config entries created by the integration. |
Sorry 'bout the accidental close, I'm on mobile and the UI jumped all over the place and I was too fast... |
No problem. |
Fix also unwanted DP request that can generate unneeded log entry in DEBUG mode.