Use one master switch to control multiple linked switches.
- Turning master switch off will turn off linked switches.
- Turning master switch on will restore previously on switches (all on by default).
- When any of the linked switches are on, the master switch will remain on.
- When all linked switches are off the master switch will be off.
- On the Hubitat hub, go to the Apps Code page and click + New App
- Copy and paste the contents of
master-switch.groovy
and Save - Click + New App again
- Copy and paste the contents of
master-switch-instance.groovy
and click Save - Go to the Apps page, click Add User App, select Master Switch and click Done
- Click on Master Switch in your apps list
- Click on Add a new Master Switch
- Choose the master switches
- Chose the linked switches
- Advanced Settings:
- Override display name: Set a custom name for the master switch
- Restore Previous Light States: True (restore light states) or False (turn all lights on regardless of previous state)
- Click Done