I’m not sure I’d this is actually possible. What I’d like to do is use Custom UI to show the specified light’s brightness underneath the light switch entity, but formatted a specific way.
With Custom UI you can use Extra Data Templates, and I already have some template sensors to format it how I’d like
I'm not sure if I could one of use these template sensors within Custom UI's state card, or if I'd have to 'do it all' in Custom UI's Extra Data Template?
So instead of like I currently have it with the brightness as a separate entity underneath
Thanks, do you mean I could use an extra_data_template and make it formatted in the same way as my existing template sensor (showing brightness as a percentage rather than from 0 to 255 etc.), or I could use an extra_data_template to display the output of my existing template sensor?
so sorry to bump this, but please allow me to ask how tho get this brightness percentage as an extra badge?
since its not a true attribute, I wouldn’t know how to set the customizing, other then maybe create an extra intermediary template sensor and reference that? Hope to be able to do it directly
If you want an extra badge, it’ll need to be it’s own separate state object in home assistant. Or you’d need to make a new badge .js file that makes a the ui element for you.
I’m sure it will be. Alot of devs hang out on discord. A custom card that does this may already exist, you’d just need to find it. They usually have a good handle on what exists.
please come back if you found it. Its one of the many things Lovelace misses that made my HA frontend shine… hope to find it soon!
I find it impossible to show single (non grouped) badges above the cards on any view-page at all, nor in cards for that matter.
yes, I use them frequently like this.
Must admit I am still a bit puzzled which badges do or dont show.
I have another set of (python created ) badges and they do show in a card without problem:
the top one isn’t showing, because it isnt created yet. This is a true issue with Lovelace for me still, maybe there’s a setting, I don’t know of.
when a script is run the sensor badge is displayed:
all my custom-ui extra badges and extra data are still missing, I fear that is some incompatibility thing.
so are most of my themed entities. Which is strange again since as you can see, my badges are themed correctly … :-
I know you like the look of your old UI, but have you thought about organizing things differently? I was able to take a page full of toggles and switches for my media player and knocked it down to 2 images with nice buttons.