Salut @Heos
En reprenant ton code, ça devrait être qqc comme ça :
type: custom:button-card
tap_action:
action: call-service
service: switch.toggle
data:
entity_id: switch.esphome_web_cef3ec_100ohm
name: LUMIERE
show_state: true
entity: sensor.test_sensorstemplate
state:
- value: 'ON'
color: yellow
icon: mdi:ceiling-light
- value: 'OFF'
color: black
icon: mdi:ceiling-light-outline