More complex state_filter for Lovelace picture-elements?

Hey,

I just set up a picture-elements card and love it!
I found state_filter, but in the docs it seems like it only does an “equals” check.
E.g. “state = on”.
Are more complex comparisons possible? Like “temperature > 25”?
Couldn’t find anything about that.

Thanks!

1 Like

Did you find a solution? I’m also searching for a solution for this.

No. For entities cards I now use https://github.com/andrey-git/home-assistant-custom-ui and customize the color of the icons like this in my customize.yaml:

sensor.living_room_climate_temperature:
  templates:
    icon_color: "return state < 23 ? '#79d5ff' : state > 25 ? '#ffb253' : null"

I didn’t find a solution for picture-elements.