Pas sûr du besoin mais si c’est pour afficher l’image, voici comment faire :
#déclaration de la plateforme scrape dans configuration.yaml ou autre
sensor:
- platform: scrape
name: moon
resource: https://www.timeanddate.com/astronomy/france/cherbourg-octeville
select: "#cur-moon"
attribute: src
value_template: 'https://www.timeanddate.com{{value}}'
#Affichage de l'image dans une carte markdown + card-mod pour le centrage
type: markdown
content: |-
<div>
<img src="{{states("sensor.moon")}}" />
</div>
card_mod:
style:
ha-markdown:
$: |
div {
display: block;
text-align: center;
}

C’était bien ça le but ?