Hi - firstly thanks for such an awesome card, it really helps to build an amazing lookign interface - I created a bunch of gradient images for the backgrounds and it looks amazing.
I’m having a problem with my input_boolean’s though - none of them render as toggles. I’m using version 0.7.0 - is there some special configuration in the card code I need to help it along?
Cheers!
Edit - I’ve love to be able to say how or why, but after a HASS restart this mysteriously started working! Thank again for the awesome card!
Edit #2 - since the input_boolean is now rendering as a toggle, the Map_state function no longer works - seems it got broken somehow - let me know if sharing any info/configs might help pin that one down!
@nervetattoo love you work you have done. Just have one question but don’t know how to explain. If you have a look at my picture of the cards. I have run out of room for my titles for the entities. Is there a way to have double lines… So it would be greenhouse first line and second line would be water.
When you have a toggle you can’t really use map_state for much because it will always render as a toggle. After 0.7 you might be able to do some wacky stuff to control this on a per-state basis, but I wouldn’t recommend doing this:
Do what @Pirol62 suggests, thats what I would do.
Supporting line wrapping would make the titles and values lose their alignment and mess up readability and scannability, which is why I’ve forced this heading to not wrap. Find ways to solve within the constraints instead of trying to find ways to break them, they are there for a reason
Before the input_boolean as toggle was working, these states were mapped fine on the Motion sensor, since the toggle rendered properly, the mapping no longer works.
But now I’m totally confused.
I’m on the latest version0.7.0 with 0.97.1.
My input_boolean stays as value on/off and not as a toggle. My map_state works ?!?!
Same issue - my input_boolean didn’t render as toggles, until i did a restart of HASS (might not be related, but thats when it started working) and since then, the state mapping stopped working
Interesting. I restarted this morning due to new sensors. But the banner card behavior stayed as described. The card seems to have a random behavior due to location
So there is one thing to always ensure after an upgrade of a card: Make sure its not cached!! Clearing browser cache is the dead-certain way of doing this that I would recommend if something doesn’t quite work.
When it comes to map_state not working I can confirm I broke it and will release a fixed version very shortly.
Is there a way to change the color of the text ? Everything I tried using the card-mod tool didn’t seem to work and the only text color I get is white text even against light backgrounds. Am I able to change it to a dark color?
Is it possible to change the opacity of the background? Again I tried a few things using the card-mod tool but it didn’t seem to change.
** edit - I was able to finally figure this out but still stuck on getting the text color to change
Automatic color (light/dark) came in 0.7, if it doesn’t work then you are dealing with browser cached older version.
In 0.8 you can set color: <a color> to manually define the main heading color. The rest of the text and icons stays white however.
Hey !
Really love this one ! Just a question, i’m replacing some entities card with this one. In entities card i was used to use some toggle lock from toggle-lock-entity-row but it’s not working in that card. I’m not sure if it’s from this card side i should ask but i have to start somewhere
Thx for advice !
Edit : i know i’m just asking for a custom element to support another custom element. This is not really easy because if thomas changes anything in his custom card, it can break stuff on yours and vice versa.
Maybe you could also add your own featured lock in the banner card
basically two actions, the icon shows a lock, and if you tap it, it unlocks and shows unlocked icon, but i can’t figure out a good way to get two actions in, at the moment can only do one. I tried using the when unlocked: action locked (to put it quickly) but didn’t have much luck. Is this possible? Im thinking maybe my logic is just weird?
From my understanding, the map_state is just for mapping a certain state into something else which should be displayed. Transform a word into another or into an icon.
the action is an own key_word and cannot be used inside the map_state section.
- entity: your.entity
map_state:
1: display this
2: display that
action:
service: your.script or automation
That was correct, but recently I added support for overriding everything in map_state. Though, most of the combinations are untested and I probably won’t spend time actively supporting weird contortions