Couldn’t you do this with separate on/off rules?
MichaelStruck/SmartThings/blob/master/Other-SmartApps/Smart-Room-Lighting-and-Dimming/Smart Room Lighting and Dimming.groovy
/**
* Smart Room Lighting and Dimming-Parent
*
* Version - 1.0.0 5/4/15
* Version - 1.0.2 5/19/15 Code clean up for timeframe conditional check
* Version - 1.0.4 5/31/15 Added About screen from main menu
* Version - 1.0.5 6/17/15 Code optimization
* Version - 1.1.0 7/4/15 Added more dynamic interface options and the ability to utilize color controlled lights
* Version - 1.2.0 8/28/15 Added option to turn off dimmers if set to anything above 0 when lux threshold is exceeded
* Version - 2.0.0 11/24/15 Modified to allow more scenarios via parent/child app structure
* Version - 2.0.1 1/16/16 Allow ability to see child app version within parent app and moved the remove button
* Version - 2.0.2 2/26/16 GUI clean up
* Version - 2.1.0 3/19/16 Added about screen icon
*
* Copyright © 2016 Michael Struck - Uses code from Lighting Director by Tim Slagle & Michael Struck
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
This file has been truncated. show original