Hi, I am trying to program one of my switches in the standard Hubitat Dashboard to flash RED when the state is on and to be solid GREEN when the state is off. On this occasion, the tile ID is 335, and what I have done below is my attempt and is loaded in the CSS on the advanced tab of Dashboard. This does nothing, so I am definitely doing something wrong.
Or use any of these other animations (the css for all of the examples is in the editor on the page), and they can be adapted for the dashboard like the ones above.
Most browsers today support the pseudo class :has which lets you define a selector based on relative elements. In the example I linked above, I was needing to change the background tile of specific tiles--not all of the devices using the same template which is what the JSON customization "customColors" option does for us.
So in your specific need, change the selector to something like: