From 1265289866fe07c94e76cdfcd20764fe8be5291a Mon Sep 17 00:00:00 2001 From: Sven van Heugten Date: Sat, 17 Jan 2026 18:35:03 +0100 Subject: [PATCH] Test alternative way to turn on light --- NightLight.Core/NightLightStateMachine.fs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NightLight.Core/NightLightStateMachine.fs b/NightLight.Core/NightLightStateMachine.fs index f68d66d..ca73e81 100644 --- a/NightLight.Core/NightLightStateMachine.fs +++ b/NightLight.Core/NightLightStateMachine.fs @@ -16,11 +16,12 @@ let internal generateZigbeeCommandsToFixLight (light: Light) (desiredLightState: match light.ControlledWithRemote, desiredLightState.State with | NonRemote, On -> () | NonRemote, Off -> failwith $"Unexpectly trying to turn off {light}. It's not remote-controlled." + | _, On when light.Bulb = IkeaBulb -> () // Rely on the brightness command for turning it on | _, _ -> yield generateStateCommand desiredLightState.State light if desiredLightState.State = On then - yield generateColorCommand light desiredLightState.Color yield generateBrightnessCommand light desiredLightState.Brightness + yield generateColorCommand light desiredLightState.Color } type internal NightLightState =