Test the bedroom spec

This commit is contained in:
2026-08-25 12:41:42 +03:00
parent 7051eaf244
commit 771d702abd
6 changed files with 206 additions and 3 deletions
+14
View File
@@ -0,0 +1,14 @@
module HomeAssistant.Controller.Children where
import HomeAssistant.Controller (HASS)
import AFRP (Event)
import Data.Aeson (Value)
import Control.Arrow (Arrow(..))
-- I don't have any proper presence sensors in their bedroom
-- and they are notoriously bad at changing clothes in complete darkness
-- So I have set up an automation that attempts to turn on the lights sometime
-- before they leave for school and turns them off a bit later
--
-- I don't have enough primitives for this yet, leaving as a placeholder
schoolLightController :: HASS (Event Value) ()
schoolLightController = arr (const ())
+2 -2
View File
@@ -46,8 +46,8 @@ controllers =
[ Controller "bedroom-presence" bedroomPresenceController False
, Controller "bedroom-button" bedroomButtonController False -- This works but leaving for vacation
, Controller "bedroom-drawer" bedroomDrawerController True
, Controller "bedroom-humidifier" humidifierController True
, Controller "ruuvi-controller" ruuviController True
, Controller "bedroom-humidifier" humidifierController False
, Controller "ruuvi-controller" ruuviController False
]
-- | Steps the machine for every inbound message; service calls go to the