slider-button-card icon indicating copy to clipboard operation
slider-button-card copied to clipboard

Card says light is off with brightness set to 1/255

Open mortenmoulder opened this issue 3 years ago • 1 comments

Checklist:

  • [x] I updated to the latest version available
  • [X] I cleared the cache of my browser

Release with the issue: 1.10.3

Last working release (if known): N/A

Browser and Operating System: Latest Chrome and any OS

Description of problem: I have a light set to the lowest possible brightness with a value of 1 (out of 255). The card is not showing that the light is turned on, when the brightness is set to 1. If I set it to 2, it shows as 1% brightness and that the light is on. If I set the brightness to 1% using the card, it sets the brightness to 3 (out of 255). Here's a visual example. So in essence: Brightness 1 and the card shows that the light is turned off. Brightness 2 and above, the card shows the light is turned on. I assume this is a rounding issue.

Javascript errors shown in the web inspector (if applicable):


Additional information:

mortenmoulder avatar Jan 06 '22 11:01 mortenmoulder

I have the same issue.

FerretMonger avatar Apr 17 '22 11:04 FerretMonger