Question about the use of entity_picture in the current minimalist version
I have been using the minimalist project for a while now (prior to significant changes several versions back) and am struggling with using a picture (entity_picture) in place of an icon (entitiy_icon). In earlier versions of minimalist, I was able to specify an entity_picture url that appeared in place of the icon.
This is a screen excerpt from what I previously had working:
Each of those entity_pictures is an animated.svg image (usually dependent on a state value). For example if it was night and the next sun event was sunrise at 5:06 AM it would show an animated sunrise image, the time and the name of the event (aka sunrise) as shown in the above picture.
Likewise for the next tide event. If the next tide will be high at 11:52pm it shows an animated high tide icon, the time and the type of tide it will be (high or low)
- type: 'custom:button-card'
entity: sensor.next_tide_type
show_entity_picture: true
size: 150%
tap_action:
action: more-info
entity: sensor.next_tide_time
state:
- value: 'High'
entity_picture: "https://<base url here>/local/tide-high.svg"
name: 'High Tide'
- value: 'Low'
entity_picture: "https://<base url here>/local/tide-low.svg"
name: 'Low Tide'
template:
- icon_info_bg
- generic
label: |-
[[[
return states["sensor.next_tide_time"].state;
]]]
I used the above block of code (or very close to it as I have been trying to get it to work with the latest code for a while now) to produce the tide button shown above.
I canāt reproduce the above behavior anymore with the latest version of minimalist.
My current attempt is this:
- type: 'custom:button-card'
entity: sun.sun
show_entity_picture: false
size: 120%
tap_action:
action: more-info
entity: sensor.sunevent_localtime
state:
- value: 'below_horizon'
entity_picture: "https://<base url here>/local/weather-icons/fill/all/sunrise.svg"
name: 'Sunrise'
- value: 'above_horizon'
entity_picture: "https://<base url here>/local/weather-icons/fill/all/sunset.svg"
name: 'Sunset'
template: card_generic
variables:
ulm_card_generic_name: |-
[[[
return states["sensor.sunevent_localtime"].state;
]]]
With show_entity_picture: false (or the whole line commented out), the following is shown:
With show_entity_picture: true, the following is shown:
Has anyone been able to figure out a way to get entity_picture images to show properly? Iād really like to get the functionality back to as show in the top image again. Does anyone have any suggestions or ideas?