Hi all!
I’m trying to show a blinking warning notification when a binary sensor is active using an image inside a picture elements. I have the code below but it doesn’t work. Does anyone know how to do it?
You have two elements:
a) a regular image put in via
image: /local/img/your_image.jpg
This is not animated and kind of in the background.
b) an altered version of that image that is only shown when something is “on” (state_image).
That is the code I did show before. The animation is being added under “style” and in that case isis blending both image back and forth.
My example:
I use it to show if an electric car is being charged. As a base image I have a side view of that car. It is just a still image with no animation or anything else. When the car is being charged (the “on” part) then I use a modified picture with some blue/red blur around the car. The blend animation gives the impression as if the outline car is pulsing. In addition certain other information are being shown on top of that car, but only if the charging is “on” (for simplicity this is not shown in the code above)