@Mariusthvdb Thank you very much for the answer!
Do I understand this right, so if my entity has the name binary_sensor.kodi1_vpn then the theme variables to override itâs color based on itâs state would look something like:
my_theme:
...
google-red-500: "#dc322f" # Solarized Red
google-green-500: "#859900" # Solarized Green
state-binary_sensor-kodi1_vpn-off-color: "var(--google-red-500)"
state-binary_sensor-kodi1_vpn-on-color: "var(--google-green-500)"
...
I tried this and it did not change the color of the sensor.
It works only if I use either attributes.icon_color property (because itâs a template sensor) or a custom-uiâŚ
Any idea what am I doing wrong with Theme variables? (I am pretty sure that I just donât understand the concept of theme variable naming)
If you define these changed CSS variables in a particular card for particular element (hence - for a particular entity):
â only in THIS card THIS binary_sensor will be cyan/magenta:
Youre right, in standard card it works! Thank you
Do you have any idea why it is not working in multiple entity row or as a mushroom card? HA is last version, both are mushroom cards and multiple enitity rows
In general, style from card_1 may not work for card_2.
Working examples for m-e-r: go to 1st post of the thread â link at the bottom â multiple-entity-row
you could also just use the right device_class everywhere, as HA has default colors for all of those, and you might just like them.
Only need to change them if you want different colors
There is a lot of unnecessary information that I donât want to display.
The header and state are working well,
but I canât figure out how to set the display of div class current and the controls under div class controls to none.
I just wish only the temperature control section would be visible.
the 100px was to concretely show my problem,
namely that the code works (the spacings take the indicated size), and in the next second, returns to its default state (return to default spacings).
in this case, with your code (I like the fact that we can also change the top margin!), only the top margin remains taken into account.
The second (concerning the state-badge), returns to its standard state in the following second: (again with 100px to show that this is not taken into account )
I am trying to style the thermostat fan and swing modes. But i can not get it done in card_mode style.
I can change it in the chrome DevTools but when i set it in the card mod it does not do anything.
Sadly no, I still didnât update because of this and the developer has gone radio silent sadly, so no responses. On Github issue someone did mention there was a workaround with a different variable, but it has some other caveats. You could try that, the issue is created on the Github page.
Iâm using an entity filter card to show a list of faulted zones (alarm panel). Iâm using the entity card inside, which shows the state next to the name as âfaulted.â Iâd like to hide âfaultedâ since the item will appear in the list only when itâs faulted anyway. The entity card doesnât appear to have a âshow_stateâ function.
tbh, I dont really use it, and have this only for the sake of the experiment. Itâs indeed fixed, so if it should be done differently, I wouldnt know yet.
Yeah, the fixed settings still works, itâs the sticky setting that is broken. My fixed elements also work as intended. The sticky cards however do not.