Turn on lights before changing brightness and color

This commit is contained in:
Sven van Heugten 2026-01-05 23:10:26 +01:00
parent 9bc76cdf8e
commit 10d858817d

View file

@ -16,8 +16,8 @@ let internal generateZigbeeCommandsToFixLight state partOfDay light =
getDesiredMood light.Room partOfDay |> getDesiredColorAndBrightness light.Bulb
seq {
generateZigbeeCommand color brightness light
generateStateCommand state light
generateZigbeeCommand color brightness light
}
type NightLightStateMachine private (maybeTime: DateTime option, lightToState: Map<Light, State>) =