After using this card for a while, I decided it was a bit too hacky for my taste and it made formatting a card layout a nightmare. I took the concept and merged it with ideas from compact-custom-header to make their lovechild that you see here today.
This module allows you to update your lovelace background with animated backgrounds based on an entity’s state. If you don’t want to update based on an entity’s state you can just set
default_url for an unchanging animated background.
All instructions for installation can be found in the repository, though I recommend installing it through HACS so you stay up to date with bug fixes and feature updates.
A huge thanks to both CCH and VideoBackground-Card for the inspiration (and in some cases blatant theft of their code)