|
@@ -178,7 +178,7 @@ class ground_floor_west_dirk(room_shelly_tradfri_light):
|
178
|
178
|
if device == self.button_tradfri:
|
179
|
179
|
logger.info("Toggeling \"%s\" desk light to %s", type(self).__name__,
|
180
|
180
|
not self.powerplug_common.get(self.KEY_POWERPLUG_DESK_LIGHT))
|
181
|
|
- self.powerplug_common.set_output(self.KEY_POWERPLUG_AMPLIFIER, "toggle")
|
|
181
|
+ self.powerplug_common.set_output(self.KEY_POWERPLUG_DESK_LIGHT, "toggle")
|
182
|
182
|
else:
|
183
|
183
|
logger.info("Setting \"%s\" desk light: %s", type(self).__name__, data)
|
184
|
184
|
self.powerplug_common.set_output(self.KEY_POWERPLUG_DESK_LIGHT, data)
|
|
@@ -252,7 +252,7 @@ class ground_floor_west_dirk(room_shelly_tradfri_light):
|
252
|
252
|
elif state == self.STATE_ACTIVE_DEVICE_AMPLIFIER:
|
253
|
253
|
return self.powerplug_common.get(self.KEY_POWERPLUG_AMPLIFIER)
|
254
|
254
|
|
255
|
|
- def choose_next_device(self, device=None, key=None, data=None):
|
|
255
|
+ def choose_prev_device(self, device=None, key=None, data=None):
|
256
|
256
|
if self.active_device_state is not None:
|
257
|
257
|
start_value = self.active_device_state
|
258
|
258
|
for i in range(0, self.STATE_ACTIVE_DEVICE_MAX_VALUE + 1):
|
|
@@ -264,7 +264,7 @@ class ground_floor_west_dirk(room_shelly_tradfri_light):
|
264
|
264
|
return
|
265
|
265
|
self.active_device_state = None
|
266
|
266
|
|
267
|
|
- def choose_prev_device(self, device=None, key=None, data=None):
|
|
267
|
+ def choose_next_device(self, device=None, key=None, data=None):
|
268
|
268
|
if self.active_device_state is not None:
|
269
|
269
|
start_value = self.active_device_state
|
270
|
270
|
for i in range(0, self.STATE_ACTIVE_DEVICE_MAX_VALUE + 1):
|