Implement fading alarm

This commit is contained in:
Sven van Heugten 2026-01-17 18:01:14 +01:00
parent 3e33e489aa
commit 6b73e32cda
3 changed files with 26 additions and 7 deletions

View file

@ -48,7 +48,11 @@ let internal createOrUpdateNightLightState
light,
{ Color = color
Brightness = brightness
Brightness =
if alarm && light.ControlledWithRemote <> NonRemote then
brightness.Scale(getAlarmWeight time)
else
brightness
State = if alarm then On else previousState })
|> Map.ofSeq