I am experiencing a strange behaviour for my entities cards.
When I have an entities card with my climate entities, the card is not themed properly for the climate entities with state āunknownā (you can see becaue temperature is ā0ā instead of the minimum 4.5).
the LOCK should be shown in green when unlocked - and red, when it is locked.
The template itself is working as expected, based on the template editor:
first of all, as I posted somewhere above, I would not recommend doing these complex templates on any available row in your HA frontendā¦ it will be very costly.
simply create 2 mods for script and climate, and apply those in the dashboard cards. It will be much cleaner, cheaper for the system, and more robust. it would require 1 time mod in an auto-entities card on those domainsā¦
but, if you still would want to make life difficult ;-), Id suggest taking it step by step.
first, take out the template and create a fixed mod for lets say a script entity. see if it works. for both the color and the font-style individually. or the height for that matter.
then, 1 step further, template the state for that script entity and see if things still work. If yes, then open up the template for the various domains.
btw it seems that the order in your template is incorrect, and the on/off should be nested inside the script (unless your also trying to mod things on climate being on/off)
honestly, again, why make it so difficult, while you simply use the theme colors HA provides natively? Do you really want to color all the names, instead of the icons?
I am styling all entities cards no matter how they are created or what they contain. Even slider-entity-rows.
I wanted to reduce the spacing between rows and I wanted to change color and style of the entity name, the icon and the state. The combination gives perfect visible distinction between entity states.
The alternative would have been to style all entities cards manually depnending on what the content is. That is more work and more code per card that I find less convenient to alter due to the way the editor looks on mobile devices.
I have not noticed any system lags. Of course I am not checking the loads as such ao cannot comment if the cpu usage haa increased or not. But I observed no impact so far.
It also seems irrelevant which part of the code I remove as every single part is working. I can see it working on all my different cards.
Only if I restart HA and the climate state is āunknownā the card is not modded. As soon as the state is no longer unknown, the mods work.
Hey,
thanks - sorry ā¦ I really forgot to mention, that I need the themed color schemas for other lock entities
by default, the schema is correct - unlocked should be red, because then it needs my attention (house, car-door, etc)ā¦
But for other cases, like the cat flap, the ādefaultā and normal state should be unlocked.
btw: I got it working by replacing the config.entity with the actual entities name, like Iāve used it in the template section.
I donāt really see why it did not work here - but in all other cases where I change the tiles color by using config.entityā¦
Hi, having a bit of trouble with an addon I wrote called card-alexa-alarms-timers. The way itās written, it redraws the whole card every second. This is causing a flickering effect that wasnāt there a few weeks ago, so we think it might be due to the 3.4.0 or 3.4.1 update. My github for the addon is here: GitHub - Kethlak/card-alexa-alarms-timers: Card for Alexa Timers and Alarms
I am using a theme file for displaying this on my device, and the part of it that uses card-mod looks like this:
Is this syntax still valid? Am I doing something wrong? The transition section was added to prevent the whole thing from resizing every second. Maybe thereās a better way to handle that?