I’m moving over to the Lovelace UI, but there’s something I’ve not managed to replicate from my old config.
I use Custom UI to show the light brightness underneath some lights
Example code:
customize:
light.office_light:
friendly_name: "Office Light"
icon: mdi:ceiling-light
custom_ui_state_card: state-card-custom-ui
extra_data_template: >
if (attributes.brightness) return Math.round(attributes.brightness / 2.55) + '%'; else return null;
Is there any way to do this with Lovelace, maybe somehow with secondary_info:?