From f553bc787776d384892c4880ba18a2b068f36424 Mon Sep 17 00:00:00 2001 From: Aaro Varis Date: Thu, 5 Feb 2026 08:56:40 +0200 Subject: [PATCH] testi commit --- init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.py b/init.py index 55df399..d2587d9 100644 --- a/init.py +++ b/init.py @@ -125,7 +125,7 @@ class AlarmClock: if self.configMode == "normal": # Normal mode: toggle relay self.setRelayState(not self.relayGpio.read()) - setShellyPlugState(shelly_deviceId, self.relayGpio.read() == 1) + setShellyPlugState(shelly_deviceId, self.relayGpio.read() == 0) elif self.configMode == "set_hour": # Increment hour self.alarmHour = (self.alarmHour + 1) % 24