Change entity_picture based on state

So i’m not quite sure this is possible or how to do it if it is.
I want to change the picture based on the weather status.

sensor.yaml

sensor.dark_sky_minutely_summary:
entity_picture: /local/weather/{{ states(“sensor.dark_sky_icon”) }}.png

This is what I have so far, but it is not returning the state to correctly show the image.
Any thoughts?

This would be cool. I would love to see a customization enhancement that would allow for state icons. That would be neat.

customize: 
    cool_device:
    entity_picture: mdi: cool_device
        state:
           offline: mdi: offline-device
           online: mid: online-device

Something like that would be a pretty neat enhancement for the UI.

No solution yet?
The link above is in the end pointing back to this one :confused:
I want battery pictures that display the actual state :smiley:

The OP asked if entity_picture could be changed using custom icons in his example and not MDI Icons.
I’m trying the same and see similar results. Can this be accomplished?
Thanks

1 Like