Group Light and Switches

Create a Light Switch from switch.plug2 then include it in the Light Group you originally created.

light:
  - platform: switch
    name: Plug2
    entity_id: switch.plug2

  - platform: group
    name: livingroom lights
    entities:
      - light.bulb01
      - light.bulb02
      - light.bulb03
      - light.plug2
7 Likes