Gh61/lovelace-hue-like-light-card

Brightness in text templates is shown as integer 1-255, not as percent value

Closed this issue · 2 comments

Brightness in text templates is shown as integer 1-255, not as percent value. For example:

description: Lights {{ light.frontlights.brightness }}

image

In your documentation brigthness in name and descritption fields on sample screenshots is shown as percent value, which contradicts with my experience. Is there any way to fix it, so it is shown as percent value.

Gh61 commented

Hi,

this should be working (and is working on my instance).
What version of HA and this card (can be seen in console of your browser - open with F12) do you use?

HA version must be 2023.9+ and card version must be 1.5.0+.

Also, as this is related to localization, what language for UI do you use?

The card is 1.6.0, but HA is 2023.4.6, which is probably the problem. Thank you very much for quick reply. Closing the issue.