I’ve built something that does that. It’s called Mode Lighting (play on Mood Lighting, I guess). Here’s what it does:
Select a “master” dimmer, and optionally multiple other dimmers that are all to be treated as a group. In my use the master is often the first of 2 or 3 dimmers at the entry to a room, and in other cases the only dimmer in a room.
Select 3 dimmer levels for 3 different modes. I use a shorthand for this to make setting this up more streamlined: you enter a 6 digit number such as 903010, which would mean 90% for first mode, 30% and 10% for the other two. Also, to streamline setting it up, the modes are hardwired in the app (and very easily changed in one obvious place to your 3 modes). This streamlining was done because I have something like 20 instances of this app, and it just gets to be a pain to enter every thing over and over when it’s always the same modes.
Optionally, select some other dimmers that are turned off when the master is turned off. This is because I sometimes use the master to turn off several rooms, when the master only turns on a subset.
Optionally, assign a Momentary Button to activate the app. This is useful for having Hello Home phrases or things like Minimotes activate the app.
Optionally, select one or more motion sensors to activate the app, turning on the dimmers to the right level for the current mode. The motion activation can be restricted to be only during certain times, only on certain days of the week, and/or only in certain modes. Use “Turn off when there is no motion” from Lights & Switches to turn things off after some time.
This app does not turn things on at a mode change, but does reset the dimmer levels. For instances of the app (think one room) where there is no motion sensor selected (manual turn on), it will adjust the lights to the appropriate dimmer level at mode change, but not turn them on. To accomplish this, those dimmers have to use the modified device type I created, that adds
resetLevel(value) to the Dimmer Switch device type. If one of the dimmers is off, the app tells the modified device type to reset the dimmer level and then immediately turn the light off. If the dimmer is on, the level will be reset when it is next turned off.
In the case of instances of the app where there are motion sensors selected, none of this is needed. However, if such a dimmer is on at mode change, and the new mode would be brighter, it brightens the lights right then.
The source for the app is here:
The source for the modified device type is here:
Enjoy. PM if you have any questions.