Can this card work to send data to a lovelace_gen include statement? What kind of data is “name” below? Is it a string? The lovelace_gen acts differently if I replace the templace with a raw string equivalent of what the template should resolve to.
In the lovelace_gen file I try to do an if statement on the “name”. It always equates to false using the template above, even if I know that the state of the input_select is 550d. However if I swap the template for a raw string with “550d” the if statement resolves true.
I use this card for my floorplan, was always working great. Two days ago i did some HA updates, after not doing this for months. Everything is still working except for one of my views in my dashboard.
The page with the custom:config-template-card is now just a blank page. I did read the breaking changes and for as far i know there was nothing mentioned about custom:config-template-card. I also looked for important changes around custom:config-template-card and also cannot find something like that.
Someone a idea why this page of my dashboard is completely blank?
After the update of HA the card didnt worked for two days. Today after restoring de back up and updating again the card stil did not work. Now, some hours later the card is working again. No idea what went wrong.
Thanks for your reply, made the card a year ago so i have to dive in to it to see if i can make it better, but for now everything is working like it should.
OK, I stopped convincing you. The card is not supposed to work properly if it has errors. It may DISPLAY something but it will not CHANGE DISPLAY IN REALTIME since you have not specified monitored entities in your example.
Sorry, Maybe the definition of working is not clear in my situation. The problem was that the card was blank after the update, so no floorplan etc.
At this moment the floorplan is back and things are working as before. So now i do have all the time to dive in to my code en read the documentation as told…
So im definitly gonna do some thing with your advice
using below templated ‘Dark’ for Maps when certain themes are active has worked nicely, up to recently. I only noticed yesterday, so am not sure when this would have started tbh.
currently, when this map is displayed, it briefly shows the dark background, but then immediately switches to the regular (light) map, though it keeps the dark interface items
what could have changed lately? It probably is a frontend thing,. but posting here since it is in fact the ome case I use these custom:config-template-card configs.
hmm, I just tested it with a hard coded dark_mode: true and that behaves the same. Erratic. So, a frontend issue. I’ll writeup an issue
New to HA and I’m trying to get ONLY the icon to change based on the state of the light, in this example. Instead, the icon doesn’t show up unless I delete the items under “row” Is that something that is possible with this?
In that example, again if I’m reading it correctly, would display icon ‘mdi:home’ if the state (from the variable) was ‘on’ or ‘mdi:circle’ if the state was off.
So if I have read this instruction wrong, perhaps you could share what you would suggest?
Well, as I said I am new to HA. If you don’t know the answer, or more likely are unwilling to help guide me toward a solution, then why did you take the time to reply? There might be someone else here that is willing to offer counsel.
You have yet to have offered a solution, which is where I assume you are perhaps unwilling to help? I’d love, of course, to be proven wrong.
Ok, just show a card which you want to change.
Your first example was an Entities card with a section and a switch.
What do you want?
Changing a section’s label - DONE, you did it!
What else?
You wanted to change an icon - but the card has only one icon for the switch.
I thought I displayed the full card of what I wanted to change, and in my opening post I stated that I wasn’t interested in changing anything but the icon based on the entity state. When it is turned on, I want one icon mdi:light-switch and when it is turned off I want mdi:light-switch-off
Are these not two icons? ‘‘mdi:light-switch’’ when it is turned on (variable) and ‘‘mdi:light-switch-off’’ when it is turned off?
Again, apologizes as it seems that you’re getting riled up by lack of familiarity with YAML. I worked off the closest example that was present on the author’s github page. Perhaps you could reference a good source for me to review so that I don’t continue to upset you (not everyone starts off YAML as the expert that you may have been).