Open andyblac opened 1 year ago
It doesn't work like that unfortunately, that works only for "text" attributes or numeric main state of an entity. helpers.localize
has no effect here, you should directly access the brightness attribute.
the issue is the attribute does not hold the % value, but OK i'll keep using Math
Checklist
Describe the bug when using
"[[[ return helpers.localize(states[entity], states[entity].attributes?.brightness); ]]]"
it just returns the value of thebrightness
attribute ie8
, I would of expected it to return the actual brightness with the measurement type. ie3%
, to get the required result atm I have to use.Version of the card Version: 4.1.1
To Reproduce This is the configuration I used:
Expected behavior I would of expected it to return the actual brightness with the measurement type. ie
3%