Extend a light switch to be able to control other switches. Toggle the main switch on and off (or off and on) within 1 second to change the scenes.
switch
: entity id of the main switch which will control other switches. This can be anything that has a state ofon
oroff
scenes
: list of scenes; each scene has aname
attribute and aentities
attribute, which is a dictionary of entity id as a key and the state as a value for when this scene is on
At least one on scene is required.
bedroom_light:
module: switch_scenes
class: SwitchScenes
switch: light.bedroom_main_light
scenes:
- name: Night Light On
entities:
light.night_light: "on"
- name: Night Light Off
entities:
light.night_light: "off"