From 3a151bc68bf87886b0e99ecae0abffa06ec4b019 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Tue, 20 Dec 2022 19:43:31 +0100 Subject: [PATCH] added some logging for brightness fading --- function/first_floor_east.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/function/first_floor_east.py b/function/first_floor_east.py index 0620bb2..b41716b 100644 --- a/function/first_floor_east.py +++ b/function/first_floor_east.py @@ -94,10 +94,13 @@ class first_floor_east_sleep_madi(room_shelly_tradfri_light): def fade_bed_light(self, device, topic, data): if (data == 'brightness_up_hold'): + logger.info("Increasing brightness \"%s\" bed light dirk", type(self).__name__) self.bed_light_di_tradfri.brightness_inc() elif (data == 'brightness_down_hold'): + logger.info("Decreasing brightness \"%s\" bed light dirk", type(self).__name__) self.bed_light_di_tradfri.brightness_dec() 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() def gui_switch_command_bed_light_di(self, device, key, data):