When a light supports RGB or XY, it renders us a switch, and not a slider.
Whilst this is overridable, it would be great for it to be automatically picked up.
I'm not sure whether it would be best to list all of the supported light modes that are likely to have brightness or add a check for attrs.brightness
Unfortunately, it looks like entities lose their brightness attr when turned off.
Due to the line here: https://github.com/DBuit/light-popup-card/blob/3543c29b131303bc44b6c6ba874ca307f409b054/src/light-popup-card.ts#L161-L163
When a light supports RGB or XY, it renders us a switch, and not a slider. Whilst this is overridable, it would be great for it to be automatically picked up.
I'm not sure whether it would be best to list all of the supported light modes that are likely to have brightness or add a check for
attrs.brightness
Unfortunately, it looks like entities lose their brightness attr when turned off.