diff --git a/hklifxd.go b/hklifxd.go index 99b2508..ea3e437 100644 --- a/hklifxd.go +++ b/hklifxd.go @@ -213,6 +213,9 @@ func GetHKLight(light common.Light) *HKLight { if (brightness > 0 && !currentPower) { log.Printf("[INFO] Color changed for %s, turning on power.", label) light.SetPowerDuration(true, transitionDuration) + } else if (brightness == 0 && currentPower) { + log.Printf("[INFO] Color changed for %s, but brightness = 0 turning off power.", label) + light.SetPower(false) } }