Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ metadata {

main "switch"
details(["switch", "levelLabel", "levelSliderControl", "levelValue", "levelSync", "colorTempLabel", "colorTempSliderControl", "colorTempValue", "colorTempSync", "onButton", "offButton"])

preferences {
input name: "colorChangeWithoutTurningOn", type: "bool", title: "Set Color without turning on Lights?"
}
}

def parse(String description) {
Expand Down Expand Up @@ -287,7 +291,7 @@ def setColorTemperature(val, triggerGroup) {
if( val > 6500)
val = 6500

if (triggerGroup)
if (triggerGroup && !colorChangeWithoutTurningOn)
on()

sendEvent(name: "colorTemperature", value: val, isStateChange: true)
Expand Down