@Dbhjed - This could be done by creating a virtual switch that would fire off a smartapp that would start the lights dimmed to the preferred level.
Create two virtual switches named “Bedroom Morning” and “Bedroom Normal” with the following instructions -
Then create two smartapps with the following code -
preferences {
section("Select virtual switch to monitor"){
input "theSwitch", "capability.switch"
}
section("Which light(s) to dim in the bedroom:”) {
input "switches", "capability.switchLevel", multiple: true
}
section("Dim to this level..."){
input "lvl", "number"
}
}
def installed()
{
subscribe(app)
initialize()
}
def updated()
{
unsubscribe()
subscribe(app)
initialize()
}
def appTouch(evt) {
log.info evt.value
log.info "lvl: $lvl.value"
switches.setLevel(lvl.value)
}
def onHandler(evt) {
log.info evt.value
log.info "lvl: $lvl.value"
switches.setLevel(lvl.value)
theSwitch.off()
}
def offHandler(evt) {
log.debug "Received off from ${theSwitch}"
}
def initialize() {
subscribe(theSwitch, "switch.On", onHandler)
subscribe(theSwitch, "switch.Off", onHandler)
}
Then you can add the new virtual switches to the Lights & Switches category on the Dashboard.