testi commit

This commit is contained in:
Aaro Varis
2026-02-05 08:56:40 +02:00
parent 44d9b27332
commit f553bc7877

View File

@@ -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