Unfortunately, neither one had any effect on it.
Is there an alternate way to handle the dynamic map property without using the config-template-card? I think the config-template-card is being stretched to fill the screen instead of the map since the map is now a property of that card.
There may also be some clever layout card option to use here, but I’m not sure what that would be.
Cardmod codes provided above are missing a “card_mod” keyword. Start with fixing that error. (hope these cardmod codes were not taken from AI)
Also, config-template-card does not have ha-card, so using mod-card is needed. Suggest to check examples for config-template-card: find main cardmod thread - 1st post - fantastic link at the bottom - config-template-card.
Correct.
But these examples are about styling an inner card/row inside CTC. Here what you need is to style the CTC card itself - which is not covered by these examples, sorry for a confusion.
Anyway, the CTC must be placed inside mod-card to be styled.
Actually, I suggest first to test with Code inspector (or a similar tool in your browser): set “height: 100%” (as was suggested above) to the “config-template-card” element and see if it helps. The idea is to get a “proof of concept” before starting playing with cardmod.
I don’t think the CTC card is the issue other than it steals the styling from the map card under it. When I check it out with Code Inspector, the config-template-card element takes up the entire remaining area of the screen like I suspected. It’s the map card rendered under it that is no longer styled to fully fill the CTC container.
I have an idea for a possible fix. It’s a bit hacky and dumb, but so is HA in general so it’ll fit right in if it works.
Well, I’ve discovered a new issue. When I configure my map to use the drop down input to select the number of hours to use for the track, the icon for the user no longer updates correctly. The track updates, but the circle with the initials/photo in it stays in the same place.
I set up a simple dashboard to test it with 2 cards:
Closing this one out with what I learned in case it helps someone else going forward:
In order to get the map to update the icon location as well, the person entities need to be added to the entities list along with the input_select, so that it will trigger an update on changes to them as well. The side effect of this is that you will get a brief screen flash/redraw whenever it updates.
This was annoying to me as I have my dash on a large wall hanging display.
Ultimately, the only solution I found that did everything I needed was to simply use conditional cards.
I had to create a conditional card for each value of the input_select:
When you are in edit mode, it will look like you have a bunch of duplicate cards, but in view mode only the card(s) that meet the conditions appear. This method also had the added bonus of allowing me to use more readable values in the drop down and then convert them to hours in the map - i.e. my drop down has values like 1 Day and this displays a map with hours_to_show: 24.