[Bug]: brightness percentage math problem? #667
Replies: 1 comment 5 replies
-
How did you assume that your lower is 25 and max 255? most of tuya bulbs are lower 0 upper 1000 theses values ranges will be converted to 1-255 "0 is off" so when you change brightness from HA it will be converted to range 0-1000 but on HA will be converted to 1-255 range. paste your device diagnostics |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
LocalTuya Version
2025.5.1
Home Assistant Version
2025.5.3
Environment
What happened?
Not quite sure how to put this...
I have 4 bulbs that are Merkury BW942s. 1% on the iOS app is brightness value of 25. 100% on the app is brightness value of 255. mushroom(?) card for light brightness says brightness value of 25 is 10%. Made sure that lower value is configured at 25 and upper value is 255. adjust brightness on iOS app to 10%, HA brightness percent says 18.
again - not sure how to word this.
percentage should be [(upper_val - lower_val) / 100]
is this the integration? or core HA issue?
Steps to reproduce.
Relevant log output
Diagnostics information.
No response
Beta Was this translation helpful? Give feedback.
All reactions