let ent_id = 'cover.drzwi_na_dole';
let ent = hass.entities[ent_id];
if (ent && ent.area_id) {
let areaName = hass.areas[ent.area_id]?.name;
if (areaName) console.log(areaName);
}
I can’t seem to find the answer, but is there a way to embed a drop down inside of a custom button card? … basically I have an input select. I want a drop-down to pop open when you click the button that has all of the options for the input select. Is this possible?
Hi,
I am trying to get transparent backgrounds for my mushroom-cards within custom_fields. Card_mod is not doing the trick obviously.
Is there a way to get it working though?
I think that the real problem is that Home Assistant by itself is not designed to be fully themable/stylable, which leads to a definatly needed work-around like using card_mod. But in the end… If the themability is fixed in core and made more robust/consistent and easier usability wise, then card_mod will be superseeded by this.
yeah, but that wont ever happen, as it is not clear what that would mean. For all of us.
We all want different details, and by default, it wont be possible to accomodate all of that.
Just look at how the new icon states are now integrated. for each and every state there has to be a direct icon. And a merged PR… for each and every change option we would want to add.
While I’ve been using a custom plugin since I started with HA 8 years ago that did all of that and more with a simple template oneliner.
A possible route could be that card-mod would be integrated into HA Frontend, but if that would be the case, the same challenges would be met as we do now.
Until then, my motto is to keep as close to documentation as possible, core and custom.
When confronted with an obvious mismatch, just dont use it, it wont be reliable, or break soon…
see also this where we encountered the same in another combination of cards
I have run into a bit of snag.
I’ve created two utility meters. one shows energy pulled from the grid the other shows energy sent back to the grid. both have an attribute “collecting” when one is Idle i.o.w for example no energy is going back to the grid the value is last value. vice versa when energy is going back to the grid the counter starts running up.
what I’d like to do is change the background color of the button based on if it’s increasing iow not being used or based being