Dbhjed
(David)
May 23, 2014, 3:38am
1
I like the new group lighting into one button. But would it be possible to add the function to start dimmed? I like my light dimmed in the morning as not to disturb my partner but I also want to be able to have another button that makes the light 100% when we are both awake.
Bedroom Morning - start at 10%
Bedroom Normal - start at 100%
tslagle13
(Tim Slagle)
May 23, 2014, 2:16pm
2
Dbhjed:
I like the new group lighting into one button. But would it be possible to add the function to start dimmed? I like my light dimmed in the morning as not to disturb my partner but I also want to be able to have another button that makes the light 100% when we are both awake.
Bedroom Morning - start at 10%Bedroom Normal - start at 100%
Agreed! I would love to have the abolity to control brightness through the shortcuts on the dashboard. Would make it much more useful. As it is right now i hide the lights shortcut section on the dashboard at the very bottom because it is not as funtional as the āthingsā screen.
1 Like
btk
(The fish is still dead.)
May 24, 2014, 6:37pm
3
Or maybe a tap and hold action that pops up a slider that lets you change the level?
I like the tap and hold ideaā¦ The android Swiftkey keyboard uses a similar design for selecting the symbols ? ! . , under one key and it works great.
@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 -
Create an āOn/Off Button Tileā device (My Devices > New Device). Fill out the following -
[Device Settings]
You can use whatever you want for the Device Network Id.
Then create a new smartapp with the code provided below. The switch to monitor will be the new On/Off button tile switch you just created. It subscribes to the āonā event and in the case of the code below will change to Night mode unless already in Night mode.
/**
* Night Mode Toggle
*
* code borrowed from @stevesell
*
* Date: 2014-04-17
*/
preferences {
section("Select Switch to monitor"){
input "theSwitch", "capability.switch"
}
}
def installed() {
log.debug "Installed with settings: ${settings}"
initialize()
}
def updated(settings) {
log.debug "Updated with settings: ${settings}"
unsubscribe()
iā¦
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.