Browse Source

added some logging for brightness fading

tags/v1.0.0
Dirk Alders 2 years ago
parent
commit
3a151bc68b
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      function/first_floor_east.py

+ 3
- 0
function/first_floor_east.py View File

@@ -94,10 +94,13 @@ class first_floor_east_sleep_madi(room_shelly_tradfri_light):
94 94
 
95 95
     def fade_bed_light(self, device, topic, data):
96 96
         if (data == 'brightness_up_hold'):
97
+            logger.info("Increasing brightness \"%s\" bed light dirk", type(self).__name__)
97 98
             self.bed_light_di_tradfri.brightness_inc()
98 99
         elif (data == 'brightness_down_hold'):
100
+            logger.info("Decreasing brightness \"%s\" bed light dirk", type(self).__name__)
99 101
             self.bed_light_di_tradfri.brightness_dec()
100 102
         elif (data.startswith('brightness') and data.endswith('release')):
103
+            logger.info("Stoping brightness change \"%s\" bed light dirk", type(self).__name__)
101 104
             self.bed_light_di_tradfri.brightness_stop()
102 105
 
103 106
     def gui_switch_command_bed_light_di(self, device, key, data):

Loading…
Cancel
Save