Yeah, that was what I feared, too. I already went on and fought with some new to me stuff here whose name is Java Script. I managed to accomplish … NOTHING though. I tried my luck with .innerHTML and failed. And now to the nice part: Your lil snippet … WORKS
THANKS SOOO MUCH
That together with some line in the theme card-mod part realizes what I wanted. Now it’s time to clean things up a bit ^^
I don’t even understand where the :host([persistent]) vanished to, but I don’t care, it just works
Sorry if this has been answered already but is it possible to keep my existing HA dashboards as they are and configure this as a new Dashboard (under Configuration/Dashboards)?
As a quick try I created a new dashboard and copied the content of ui-lovelace.yaml into the new dashboard but received errors (mainly includes errored).
I implemented it like this, so I’m able to use the UI-editor.
But actually, I’m thinking about implementing it with YAML. as well, cause its getting messy.
I am having trouble getting the conditional_media card to display playback state of chromecast (googletv and chromecast speaker) while in certain apps (netflix for example, youtube works fine)
playback state works perfectly in the media view of the slider
however, in the conditional view, the icon reflects that the device is active, but the label displays as “inactive”
It would be amazing if instead of showing just “Playing”, it instead displayed the title of the running app (since it appears no media_title is available for these apps), but I can’t even brain well enough to figure the “inactive” problem…
on my chromecast enabled speaker, I have the same “inactive” issue when casting audio (which I do via media_extractor), it however works fine when selected as a spotify connect device.
Thank you, kinda works, but the card background still isn’t white.
It’s quite strange that it behaves outside of the conditional_media template just fine.
Is there perhaps a hacky way to override the background colour also?
I’d also love to dispay something like "mdi:play - entity.attributes.app_name" how could I go about that syntax wise? I’m not sure how to make it display an mdi icon there, if it’s even possible?
Thanks again for all your help, and prompt responses. I can’t imagine the amount of time you spend checking this thread!
Thanks, that’s taught me a bunch and I’ve made some progress, however i can’t seem to get the code snippet you’ve given me for background-color to function as intended.
It seems not to override the - conditional_media template present in the card. However, setting the template to - mediaoverrides the default colours actually, after some playing with the alpha channel, it seems to overlay the colours I’m forcing on top of the default colours set by the media template.
It confuses me a little that me that the media template can handle album art as well as falling back to base colours, but I’m not clever enough to notice how conditional_media handles this differently (but I can see that the template also does some other stuff like .fanart and .poster, I assume for plex or the like).
Ultimately, it’s not so bad having the card greyed out if no art is present tho. I’ve managed to resolve the ‘inactive’ while playing issue so I’m pretty happy for now.
The offending line causing conditional_media to break in my situation:
It seems that this template defaults to idle if there is no artist and/or title present within attributes.
Swapped variables.translate_idle out to variables.state which appears to solve my issue with the playing state.
I’m currently struggling in moving the Lights Brightness Popup, which currently is a hold_action on the Lights tile, to a single tap_action on the Light-Icon.
So basically, when tapping on the Icon inside the Lights Tile, the Popup should open. If I tap the other Area inside the Light tile, the Light should turn on/off as it does today:
I tried to modify the Icon itself, but can’t really bring the tap_action to work without breaking the current tap_action of the tile itself, which is turning the lights on/off.
How did you manage to work sensor values as button-card ? I couldn’t manage to do it right way. Because when i try to that with your shared code they are just not stretched to button-card. Can you help we with that? And can you please share your code or github id ?
I tried to do with your shared code the “GRAPH” one. Bu i couldn’t stretched it.
This is what i want to do.
Theres any way to get a automation state inside a variable? the entity.state its not valid because the state that i want is not the sabe as the entity refered in the card. Look:
I’m trying to add HTML class as I did with your help in the footer, to hide the names on phone, inside a markdown card. But I can’t get it to work. Is it not supported, or is there another way to archive this?
For testing I just included