The center button also disables sleep mode

This commit is contained in:
MasseR committed 2026-09-24 10:07:02 +03:00
1 parent 69cac934ec
commit fafc7111bb
1 file changed
+2
+2
View File
@@ -111,6 +111,8 @@ bedroomButtonController = proc x -> do
Event (Enishen (OffButton _)) -> do
sleepMode -< False
callService (light [AreaId "makuuhuone"] Off) -< ()
Event (Central _) -> do
sleepMode -< False
_ -> returnA -< ()
where
sleepMode = callServiceDyn (switch [EntityId "switch.adaptive_lighting_makuuhuoneen_valot_sleep_mode"] )