added some logging for brightness fading
This commit is contained in:
parent
34e7cab818
commit
3a151bc68b
@ -94,10 +94,13 @@ class first_floor_east_sleep_madi(room_shelly_tradfri_light):
|
|||||||
|
|
||||||
def fade_bed_light(self, device, topic, data):
|
def fade_bed_light(self, device, topic, data):
|
||||||
if (data == 'brightness_up_hold'):
|
if (data == 'brightness_up_hold'):
|
||||||
|
logger.info("Increasing brightness \"%s\" bed light dirk", type(self).__name__)
|
||||||
self.bed_light_di_tradfri.brightness_inc()
|
self.bed_light_di_tradfri.brightness_inc()
|
||||||
elif (data == 'brightness_down_hold'):
|
elif (data == 'brightness_down_hold'):
|
||||||
|
logger.info("Decreasing brightness \"%s\" bed light dirk", type(self).__name__)
|
||||||
self.bed_light_di_tradfri.brightness_dec()
|
self.bed_light_di_tradfri.brightness_dec()
|
||||||
elif (data.startswith('brightness') and data.endswith('release')):
|
elif (data.startswith('brightness') and data.endswith('release')):
|
||||||
|
logger.info("Stoping brightness change \"%s\" bed light dirk", type(self).__name__)
|
||||||
self.bed_light_di_tradfri.brightness_stop()
|
self.bed_light_di_tradfri.brightness_stop()
|
||||||
|
|
||||||
def gui_switch_command_bed_light_di(self, device, key, data):
|
def gui_switch_command_bed_light_di(self, device, key, data):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user