How to Do on / OFF group switch

or a template switch

switch:
  - platform: template
    switches:
      mygroupswitch:
        turn_on:
          service: switch.turn_on
          data:
            entity_id: 
              - switch.myswitch1
              - switch.myswitch2
        turn_off:
          service: switch.turn_off
          data:
            entity_id: 
              - switch.myswitch1
              - switch.myswitch2
3 Likes