# Créer une light card multi entité

**URL:** <https://forum.hacf.fr/t/creer-une-light-card-multi-entite/39946>\
**Category:** Entraide Home Assistant\
**Tags:** interface-lovelace, aide\
**Created:** [Avril 12, 2024, 2:59 UTC](https://forum.hacf.fr/t/creer-une-light-card-multi-entite/39946 "2024-04-12T14:59:23Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![BBE](https://forum.hacf.fr/user_avatar/forum.hacf.fr/bbe/32/64915_2.png) [@BBE](https://forum.hacf.fr/u/BBE)\
**Post date:** [Avril 12, 2024, 4:14 UTC](https://forum.hacf.fr/t/creer-une-light-card-multi-entite/39946/9 "2024-04-12T16:14:03Z")

</div>

Faut demander ça à @Giga77 … j’ai l’impression que oui car son entité on-off s’appelle light.lumière\_on\_off…

mais tu peux changer

```auto
        turn_on:
          - service: light.turn_on
            entity_id:
              - light.lumiere_buanderie_on_off
          - service: light.turn_on
            entity_id:
              - light.lumiere_buanderie

```

en

```auto
        turn_on:
          - service: switch.turn_on
            entity_id:
              - switch.lumiere_buanderie_on_off
          - service: light.turn_on
            entity_id:
              - light.lumiere_buanderie

```

il a posté cette version avec la couleur.

> [@Branchement Sonoff ZBmini extreme](https://forum.hacf.fr/t/branchement-sonoff-zbmini-extreme/23210/29):
>
> J’ai rajouté «&nbsp;set\_color&nbsp;». Et hop, version couleur: light: - platform: template lights: light\_buanderie: unique\_id: light\_buanderie friendly\_name: "Lumière buanderie" level\_template: "{{ state\_attr('light.lumiere\_buanderie', 'brightness')|int(0) }}" value\_template: "{{ is\_state('light.lumiere\_buanderie\_on\_off', 'on') }}" temperature\_template: "{{ state\_attr('light.lumiere\_buanderie', 'color\_temp')|int(153)}}" color\_template: "{{ stat…

Perso je n’utilise pas ce type de montage.

---

_[View the full topic](https://forum.hacf.fr/t/creer-une-light-card-multi-entite/39946)._
