I've been playing with AI in ComfyUI (via this custom integration) and settled on a workflow that inpaints the current weather conditions on a template photo. This is triggered on an hourly basis, and seems to running perfectly. It happily dumps the resulting image in my /media/ai_task/image directory as expected, and the image shows up in my media browser. Hard part: complete.
Or so I thought.
I have a touchscreen LCD in my kitchen driven by a RPi running firefox in kiosk mode, it has its own dashboard, with its own view and whatnot. I've been digging around scripts and actions and cannot seem to find a service call or anything that can set the image from the media browser as the background. So far, the best thing I've found is this that uses card-mod, but all the images from the AI call get their own unique timestamps based on the time and date (2026-02-07_203220_AIgen.png), and I'm guessing that I would have to manually reload the dashboard to see the newest image.
Anyone have any idea on this one? I'm not averse to installing more addons/integrations, and all I need is the dashboard's background to be able to change without having to manually reload the page.
And this is a variant for any kind of dashboard layouts: test_background_dynamic: card-mod-theme: test_background_dynamic card-mod-view-yaml: | .: | masonry-layout, horizontal-layout, vertical-layout, hui-masonry-view, hui-sidebar-view, hui-sections-view, hui-panel-view { {% if ... -%} ba...