Tu peu utiliser browser mod, qui te permet d’afficher une carte popup. Genre la carte markdown avec du texte et qui disparait quand tu click ou tu veut.
un exemple pour m’afficher une image en popup:
- type: custom:button-card
name: Tableau
color_type: icon
icon: mdi:watering-can
color: rgb(0, 102, 0)
aspect_ratio: 1/1
styles:
icon:
- top: '-28%'
- left: 2%
- width: 48%
- position: absolute
name:
- font-size: 0.85em
- white-space: normal
state:
- font-size: 0.75em
- white-space: normal
label:
- font-size: 0.75em
- white-space: normal
card:
- padding: 0.2em
- '--mdc-ripple-color': rgb(31, 111, 235)
- '--mdc-ripple-press-opacity': 0.5
- box-shadow: true
- transition: true
- font-size: 16px
- background: url(/local/images/tableau.png) round
hold_action:
action: call-service
service: browser_mod.popup
service_data:
title: Tableau
card:
type: picture
image: /local/images/tableau.png
large: false
hide_header: true
style: |-
:host .content {
width: 55vw;
height: 43vh;}