Hmmm if it’s just complaining about expecting a float, you could maybe get away with simply multiplying by 1.0
{{state_attr("light.kitchen_sink_ceiling", "brightness") * 1.0}}
I think… {{state_attr("light.kitchen_sink_ceiling", "brightness") | float}}
also works these days.
My lights return brightness=None when they’re off… and None * 1.0 probably breaks something, so this might be more consistent: {{(state_attr("light.kitchen_sink_ceiling", "brightness") or 0) | float}}
PS: I can’t say much about brightness_pct
, I normally use brightness
instead (0-255).
mTLS is great and it’s a shame Firefox mobile still doesn’t support it.