Skip to content
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

Tolerance for light brightness not working #157

Closed
asportnoy opened this issue Dec 19, 2024 · 2 comments
Closed

Tolerance for light brightness not working #157

asportnoy opened this issue Dec 19, 2024 · 2 comments

Comments

@asportnoy
Copy link

One of my lights (provided by the Govee integration) has some slight variation between the brightness you set it at and what it actually sets to. However, even with the scene tolerance set to the max, this isn't considered a max by Stateful Scenes

The internal brightness attribute (out of 255) is configured to be 10 (3.92%) within the scene, and the resulting value after applying is 7 (2.74%). I'm not sure what exactly the "unit" for the tolerance is meant to be, but this should be considered as well within the threshold even at a low value, let alone at the max value.

I tried choosing different brightness values as a workaround, but they all seem to have at least some minor deviation between what the scene is configured to and what it actually gets set to.

@hugobloem
Copy link
Owner

Hi,

The unit of the tolerance is the unit of the values that are being compared - for brightness the unit is brightness (0-255) and for colour temperature it's Kelvin. The calculation is |state_value - desired_value| <= tolerance.

Are you configuring your scenes via the UI or via yaml? If you configure it via yaml make sure that you use brightness and not brightness_pct.

When configuring the tolerance values do you update them on the device page, or during the setup of the integration? If you do the latter, please try to change the value on the device page instead.

If this doesn't work could you please provide the debug logs (Devices & Services -> Stateful Scenes -> Enable debug logging -> change your lights that don't play nicely -> Disable debug logging and the logs will download).

@asportnoy
Copy link
Author

Seems like it may have fixed itself at some point but will let you know if I notice it again. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants