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

Loading…
Cancel
Save