Yeelight group, no group switch on card

I have several Yeelight and grouped them together. A card appears with the group, but the group switch does not. Any idea?

light:
  - platform: yeelight
    devices:
      192.168.1.2:
        name: Play Room SW
      192.168.1.3:
        name: Play Room NW
      192.168.1.4:
        name: Play Room NE
      192.168.1.5:
        name: Play Room SE

group:
  lightsdown:
    view: yes
    name: Lights Downstairs
    entities:
      - light.play_room_sw
      - light.play_room_se
      - light.play_room_nw
      - light.play_room_ne

The group you’ve made is a view (ie a tab on the top of your HA interface).

This is why the card you have taken an image of is not named “Lights downstairs”.

If you want that group to be a card, remove the line view: yes

The resulting card will have a ‘master switch’.

If you actually did want a ‘view’ with a card on it, the code would be:

light:
  - platform: yeelight
    devices:
      192.168.1.2:
        name: Play Room SW
      192.168.1.3:
        name: Play Room NW
      192.168.1.4:
        name: Play Room NE
      192.168.1.5:
        name: Play Room SE

group:
  lightsdown:
    view: yes
    name: Lights Downstairs
    entities:
      - group.lights_down_card

  lights_down_card:
    name: Lights Downstairs
    entities:
      - light.play_room_sw
      - light.play_room_se
      - light.play_room_nw
      - light.play_room_ne

Yes, that worked perfectly, thank you.

1 Like