Add second remote
This commit is contained in:
parent
48c58b610c
commit
8cde891ba2
8 changed files with 51 additions and 11 deletions
|
|
@ -111,6 +111,14 @@ type NightLightStateMachine private (maybeState: NightLightState option) =
|
|||
currentState
|
||||
|> withInvertedStateFor LivingRoomWallLamp
|
||||
|> withInvertedStateFor LivingRoomFloorLamp
|
||||
| PressedLivingRoomOn ->
|
||||
currentState
|
||||
|> withStateFor LivingRoomWallLamp On
|
||||
|> withStateFor LivingRoomFloorLamp On
|
||||
| PressedLivingRoomOff ->
|
||||
currentState
|
||||
|> withStateFor LivingRoomWallLamp Off
|
||||
|> withStateFor LivingRoomFloorLamp Off
|
||||
|
||||
NightLightStateMachine(Some newNightLightState),
|
||||
generateZigbeeCommandsForDifference (Some currentState) newNightLightState
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue