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