#UK Bin Collection Data - How to make it flash?

6 messages · Page 1 of 1 (latest)

steady basin
#

Hi, I hope this is the right place, I am new here so still finding my way around.
I am using the UK Bin Collection Data custom intergration to track my black and green bin days.
On my dashboard, I now have a tile card linked to my bin entity which gives me a nice display of how many days until each collection.

When the countdown of days to go reaches one day, is it possible to get the tile card to flash to draw attention to it?

I'm sure it would be possible but I can't find anyone that has done or any guides.

Thanks in advance!

compact umbra
steady basin
compact umbra
# steady basin That might work too, I just want to draw attention to it. Would you have the YAM...

sure, I do it using card_mod which you may need to grab if you dont have already.
add this secction to the card's yaml

  style: |  
    ha-card {            
      {% if states('binary_sensor.tomorrow_is_a_bin_day') == "on" %}
        background-color: indigo !important;
      {% endif %} 
    }```
obviously adapt the template its checking to be whatever check you want to do (e.g. green_bin_days <= 1)  and change your colour as desired to fit your theme
#

this example is taken from a card that shows multiple bins and i have a helper that shows if any of them are tomorrow which is what i use. but hopefully you get the idea

inner burrow
#

Late to the party but you can css add an animation changing the color in a loop to make it flash