I am using a picture-elements card as my HA initial display. There is a background picture displayed which changes from time to time. Historically I have just used a common file name to which I copy the desired picture file. Now I am on a mission to have this happen automatically. Using the ‘Season’ integration I have set up a variable and via a script choose the appropriate picture file URL and copy the URL to the variable. That all works correctly but I have not been able to use the variable as the URL in the picture-elements card. I am using a template to extract the URL text but I don’t know if that is permitted on this card or if I am just doing it all wrong.
type: picture-elements
panel: true
image: "{{ states( 'var.season_pix_path' ) }}"
width: 99.9%
title: Today
1 post - 1 participant