Bedroom buttons: long off press turns the hallway lights off too

This commit is contained in:
MasseR committed 2026-11-09 12:11:34 +02:00
1 parent c5c11fe8d3
commit 383143024a
2 files changed
+18

No files matched your search

+6
View File
@@ -129,6 +129,9 @@ bedroomButtonController = proc x -> do
callService "scene.makuuhuone_keski" (activateScene "scene.makuuhuone_keski") -< ()
Event (Masse (OnButton LongClick)) -> do
callService "scene.makuuhuone_kirkas" (activateScene "scene.makuuhuone_kirkas") -< ()
Event (Masse (OffButton LongClick)) -> do
callService "Lights off" (light [AreaId "makuuhuone"] Off) -< ()
callService "Hallway lights off" (light [EntityId "light.hallway_lights"] Off) -< ()
Event (Masse (OffButton _)) -> do
callService "Lights off" (light [AreaId "makuuhuone"] Off) -< ()
Event (Enishen (OnButton ShortRelease)) -> do
@@ -137,6 +140,9 @@ bedroomButtonController = proc x -> do
callService "scene.makuuhuone_keski" (activateScene "scene.makuuhuone_keski") -< ()
Event (Enishen (OnButton LongClick)) -> do
callService "scene.makuuhuone_kirkas" (activateScene "scene.makuuhuone_kirkas") -< ()
Event (Enishen (OffButton LongClick)) -> do
callService "Lights off" (light [AreaId "makuuhuone"] Off) -< ()
callService "Hallway lights off" (light [EntityId "light.hallway_lights"] Off) -< ()
Event (Enishen (OffButton _)) -> do
callService "Lights off" (light [AreaId "makuuhuone"] Off) -< ()
_ -> returnA -< ()