Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107379

Picture Elements Use Variable For image: URL

$
0
0

I am creating a second post for this question as the first one is pretty stale now.
What I am attempting is to supply the URL for the Picture-Elements image: entry by using a variable. The contents (URL) of the variable changes, obviously. The particular variable is declared in the config/variables yaml file and as such should be globally available. I have not found a method that works and I have tried a lot of variations. If the problem is simply that the Picture-Element card simply cannot use anything except a URL in the form of a text string, then I will have to revert to changing the picture URL manually as before. If this cannot be accomplished with the current Picture Elements code maybe this can be a new feature. My partial current code:

type: picture-elements
panel: true
image: $ [ season-pix ]
width: 99.9%
title: Today

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 107379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>