Get a Quick Settings tile to toggle lights?

Is there a way to get one of the quick settings tiles to toggle on/off a group of lights?

On my Android i simply had to

Add a widget for Service Button
Set the service to light.toggle
Set the entity to light.light_upstairs

light_all is a group of lights ive set in config

  ## Group the Upstairs Lights
  - platform: group
    name: Light - Upstairs
      - light.light_bathroom
      - light.light_office
      - light.light_hallway_2
      - light.light_hallway_3
      - light.light_bedroom

Pretty simple

you just need to create a script to perform the action you want and use that

I don’t think that’s adding it to the quick settings bar. Quick Settings Tiles can basically call a script or scene.

Thanks, I understand that much but I do not know how to create a script to toggle a group of lights. Google has failed me so far. Do you have any insights?

Would it be something like this?

      service: light.toggle
      entity_id: light.bonus_room_lights

Assuming you don’t have a scripts.yaml file already yes. The docs cover scripts so you should be able to stick to that.

1 Like