Implement fading alarm
This commit is contained in:
parent
3e33e489aa
commit
6b73e32cda
3 changed files with 26 additions and 7 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue