I think whatās breaking it all is the background removal. Cus individually it works, but not on the complete card setting. No issue, Iāll rebuild them with the proper code, specifically with the " mushroom-template-chip:nth-child(1)$: |" options.
Thank you.
Another one for you, Iām able to make the background follow the state with this bit of code:
Unfortunetely, still doesnāt work, in fact, itās breaking all the other code with it.
The background ādivisorā stopped showing, the icon size reduced size instead of being a little bigger too. Iām sorry for being so annoying, but this is harder than it seemed lol.
@EDIT:
I managed to fix the āconditionalā part. Instead of using conditions, Iām using ātemplatesā with states on the icons to show. It works. And letās me animate.
I just really need the Icon State thing to work if thatās possible. ALMOST THERE.
After a long time away Iām back to further improving my dashboard - still the best looking one out there in my mind.
A simple request I canāt find the answer to. For the various rooms I only show temp and humidity on the home page (and eventually light the icon if the light in the room is on.
The code to show this is š”ļø{{ states('sensor.atc_9c32_temperature') | round(1) }}Ā°C š§{{ states('sensor.atc_9c32_humidity') | round(0) }}%
Where can I find the library of the icons (thermometer and water drop in this case) as Iām adding the battery level as well. I had a look at the mdi website but can only find the code to display the icons. I need the actual icons to copyā¦
You should go to Developer Tools > States > Search for binary_sensor.lumi_lumi_sensor_motion_aq2_iaszone and check what does it list.
Youāre looking for itās state. So whatās under the State Column, is the āOnā youāre looking for. If it isnāt on, you can see what it is there, and thatās what you need to type on the conditional.
Thanks for the quick reply. Its state is off, but when motion is detected, it changes to on. Tell me if Iām doing everything right? I choose the condition chip, and then in the condition tab I choose the required entity and specify the state on
If you intend that to only show if itās ON that exactly what you should be doing, yes.
When itās OFF isnāt gonna show anything. When itās ON itāll pass the condition.
The same would work for any other state. Imagine it was an alarm - for example - and you wanted it to show when you were away, youād put away there, so it would only show when the alarm state is away. If youāre home it doesnāt show cus the state is another.
You can even complicate it (I do that with some stuff), you can add states of TWO different entities. āIf lights AND motion onā for example, will show something, but both need to be on, otherwise it doesnāt show cus not all conditions are met.
Thanks for your advice. What you said is very interesting. This worked for me. The only thing I will add in the chip tab is to add the same entity as in the condition tab
Letās go on steps:
The mushroom-template-chip:nth-child(1)$: | works, 2 and 3 donāt. Just the first one.
If I use template instead of āconditionā it works, but it creates invisible icons disaligning everything.