Using custom built-card from here from @RomRider (excellent may I add):-
The example below returns - for custom field - the state (on/off) of a binary_sensor entity and some associated text labelling. It works fine. But how might I return an image in the custom_fields section so that - rather than the ha-icon and text being rendered - an image in my www folder is rendered, for example an image /local/my-image.png ?
Also, where does ha-icon come from , where is it defined, because clearly it is on top of HTML - where can I find this and other tags that can be used?
type: 'custom:button-card'
entity: climate.lounge
show_name: false
show_icon: false
show_label: true
..
..
custom_fields:
programmer: |
[[[
return `<ha-icon
icon="mdi:power"
style="width: 24px; height: 24px; color: deepskyblue;">
</ha-icon><span>Programmer: <span style="color: var(--text-color-sensor);">${states['binary_sensor.thermostat_lounge_programme_mode'].state}</span></span>`
]]]