Good day! I am trying to use an Image_entity element in a picture-elements card. I have both a light and a dark version available, but I do not have the ability to pull the URL for these images as they are objects in the Rivian integration. I see in the card that there is a dark-mode-image
config, but it requires a URL (like the image
config). There is not a “dark” version of the image_entity
and after hours of searching and investigating I have been left empty handed in finding an answer. Does anyone have any input or ideas on how this could be solved? Any advice or input is greatly appreciated. Thanks!
The config:
type: picture-elements
elements:
- type: state-label
style:
left: 63px
top: 40px
font-size: 30px
entity: sensor.r1t_speed
tap_action:
action: none
hold_action:
action: none
- type: state-label
entity: sensor.rivian_gear_selector_short
style:
right: 5px
top: 40px
font-size: 40px
- type: state-label
style:
left: 50%
top: 40px
font-size: 40px
entity: sensor.r1t_bearing
image_entity: image.r1t_in_use_dark