I am having trouble getting my senors to data value to change color to red if the humidity is below 30% and above 70% and temperature in red if temps go below 59F and above 70F but the ymal code i put is not working correctly to trigger the color changes this is one of 3 cards i want the trigger done on but its not working correctly i do have bot the card mod and the other card mod resources installed
I would suggest you to follow forum rules when posting a code (formatting) and use punctuation marks, do not get me wrong. And use Dev tools ā Template for testing your templates, they are wrong. Docs for templating.
Exactly. Youād better hop over to the dedicated Minimalistic card thread . Minimalistic is rediculously huge when it comes to their yaml config and modifications and needs special details all over
They might even have their own theme variables.
It is also possible that some custom cards called āminimalisticā are not related to that monstrous Minimalistic theme with tons of yaml settings. No idea about this particular minimalistic-area-card.
(I honestly see no benefits of this minimalistic-area-card in comparison to picture-glance or similar, but I only had a quick look at this custom card & most probably missed smth important)
I did play with this card before, and tried to use it for the exact use case you describe, replacing a picture-glance, but decided it was just not suited for my use case and went for the p-g in the end
you might be able to set variables (even per card or element) though and inject the variables into the configuration
a bit like this custom:button-card:
styles:
custom_fields:
# create a color for the cpu element
cpu:
- padding-bottom: 2px
- justify-self: start
- --cpu-color: >
[[[ var state = states['sensor.processor_use'].state;
if (state < 10) return 'green';
if (state < 25) return 'darkgreen';
if (state < 45) return 'orange';
if (state < 60) return 'maroon';
return 'var(--alert-color)'; ]]]
I use this card because it allows me to put a frigate live camera feed as the background. so that way we can have a dashboard that tells us the temperature thermostat settings for our daughterās bedroom. if thereās an easier way to do it this is just the only way I can find to do it using the minimalistic card
NM I was searching for video not camera i see the options nowā¦ I will give this a try thank youā¦ the title of this card is very misleading also who would have thought that Picture at a glance would support video, duhhh
to me, the main advantage is the display of the entities, that get colors according to their state, and not are the pale white color picture-glance makes them to be. (still dont get why that design decision was made btw, might be another good WTHā¦ )
ahum: WTH Why dont entities in the picture-glance use their state-color
It is a camera that has two lenses and they are used simultaneously, (there is no way to cancel one of them) and the produced feed by default is this (again there is no way of changing that)