I am trying to figure out how to add a generated image to my dashboard as background. I am saving the image URL which is generated via the AI task to a new image entity. I can display that using the image tile but I am completely lost on the background part. I have tried to create a theme which has that:
background-image: "center / cover no-repeat fixed url('http://homeassistant:8123{{state_attr('image.ai_wallpaper_image', 'entity_picture')}}')" lovelace-background: var(--background-image)
But it is not working. The other problem is that this image is only valid for 1 hr so I would actuallyp prefer to use the AI image media-source but there I am completely lost on how to use something like this for an image:
media-source://ai_task/image/2025-10-12_144608_wallpaper.png