and need to adapt them based on the card_type etc. And even then, those are not applied in the more-infoās and map cards (that require yet another mod), or logbook for example.
so, the custom plugin sets it in the way custom-ui used to do: add the attribute to the entity, and template it.
With that, it is applied everywhere.
I am after that end result. the way to get there is only a meansā¦
In the end, I guess I would hope for something along the lines of this:
Not that currently none part of frontend shows a state-dependent entity_picture. What we can do is adding a filter CSS property = some theme variable.
Cannot it do it right now, away from PCā¦
yes that would be a good thing, and then the user can set their own theme variable
and yes, HA frontend is not really up to speed using entity_pictures⦠Ive wondered since forever (and files FRās for it) to set entity_pictures via the UI, just like we can do icons.
but somehow this gets neglected completely. Even while eg the Tile cards can pick the entity_pictures if they existā¦
need some helpm identifying the correct element⦠I always like the border-radius of element in tile card to be 0, just like all border-radius in my themes.
I set that on an input_select eg like this under card_mod:
However, I now see the drop down is not affected by the mod.
No matter how I try to touch the mwc-list or the ul under it, the rounded corners remain.
Can anyone help me out?
I donāt use Sankey card. I donāt know what the config looks like from it, is the header the default from the card? Show me part of the config, I will download Sankey and take a look at itā¦
I am using card_mod 3.5.5, but even with the current 3.4.4 release, it seems unreliable to mod.
(of course I did try to set the ha-card element in the 3.5.5 way too, but that didnt help, so I wont mention it further here not to confuse the thread)
How odd.
Let me see if it was a temporary fluke, or that I need to rethink 3.5.0 (it mostly only needs an extra ha-card before this, so should workā¦)
Iām trying to get the slider on this mini-media-player card to match all my other sliders (light cards, etc). Iāve been banging my head on this for hours. After reading through tons of posts and trying different things, this is what Iāve got. Which has more in it than it would need for CSS specificity rules. Iām sure it can be simplified, but Iām not sure what Iām missing to make it work. Ildarās linked post about this card seems to be outdated.
card_mod:
style:
div .mmp-player:
div .mmp-player__core .flex:
mmp-powerstrip $:
mmp-media-controls $:
div .mmp-media-controls__volume .flex:
ha-slider $:
div .container: |
input #end {
--md-sys-color-primary: red !important;
}
card-mod-helper gave me this (starting at the card): mini-media-player$ha-card>div.mmp-player>div.mmp-player__core.flex>mmp-powerstrip$mmp-media-controls$div>ha-slider$#end
Hereās the element in the Firefox inspector. I can mess with this and actually change it.
For posterity⦠hiding the controls gives me the extra mmp-powerstrip element. We use this TV more like a monitor, which is controlled with mouse and keyboard (not much like a media player).