Heating scheme - animated

Hi. I would like to create heating scheme showing which way is water flowing and where is heat and cold water. I could create animated GIF for every state (if pump is running, gas heater on etc.). Is there some way how to set specific gif based on sensors and switches or some other solution? Thanx.

Anybody any idea?

PING ping PING

custom component

Please could You provide more details?