device choosing by brighness click added for gfw_dirk
This commit is contained in:
parent
42bba9da56
commit
2864660082
@ -128,6 +128,10 @@ class ground_floor_west_dirk(room_shelly_tradfri_light):
|
||||
#
|
||||
self.main_light_shelly.add_callback(devices.shelly.KEY_OUTPUT_0, None, self.device_chooser_action)
|
||||
self.powerplug_common.add_callback(None, None, self.device_chooser_action)
|
||||
self.button_tradfri.add_callback(devices.tradfri_button.KEY_ACTION,
|
||||
devices.tradfri_button.ACTION_BRIGHTNESS_UP, self.choose_next_device)
|
||||
self.button_tradfri.add_callback(devices.tradfri_button.KEY_ACTION,
|
||||
devices.tradfri_button.ACTION_BRIGHTNESS_DOWN, self.choose_prev_device)
|
||||
#
|
||||
self.powerplug_common.add_callback(self.KEY_POWERPLUG_AMPLIFIER, None, self.audio_source_selector)
|
||||
self.powerplug_common.add_callback(self.KEY_POWERPLUG_CD_PLAYER, None, self.audio_source_selector)
|
||||
|
Loading…
x
Reference in New Issue
Block a user