testi commit
This commit is contained in:
2
init.py
2
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
|
||||
|
||||
Reference in New Issue
Block a user