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
light:
## Group the Upstairs Lights
- platform: group
name: Light - Upstairs
entities:
- 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.
@dshokouhi
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?
script:
toggle_bonus_room_lights:
sequence:
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.
Is it possible to get the status of the light and use it in the title (or subtitle) of the tile?
the status of the light is reflected by the icon lighting up or not now
sure, please submit a feature request on github for this