Dashboard RAW config file clause statement

Hi,

is it possible to have conditional statement in Dashboard RAW config file?

Idea is to have dynamic background based on weather data with exceptions if some important dates are there.

Any ideas how this could be achieved?

I was not able to find anything :frowning:

I have already created sensor which is allowing me to separate day/night + weather data. But how to get something like “IF” clause there?

You can do very basic conditions within lovelace files via conditional card:
Conditional Card - Home Assistant (home-assistant.io)

It might be possible to have a combination of the “panel: true” option & conditional card etc. to conditionally set the “background” via a picture card…but never tested.