|
@@ -16,8 +16,12 @@ except ImportError:
|
16
|
16
|
ROOT_LOGGER_NAME = 'root'
|
17
|
17
|
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
18
|
18
|
|
|
19
|
+# TODO: implement TOPIC-changes in config.py (gfw.floor.main_light)
|
|
20
|
+# TODO: implement gui element for tradfri light as one class
|
|
21
|
+# TODO: implement devices.nodered_gui_heatvalve incl. setpoint, boost, ... + replace led with timer
|
|
22
|
+# TODO: improve heating function
|
|
23
|
+# TODO: implement timer and motion leds for stairwasy
|
19
|
24
|
# TODO: implement devices.nodered_gui_timer (for circulation pump)
|
20
|
|
-# implement devices.nodered_gui_heatvalve incl. setpoint, boost, ... and functions from funtion.module
|
21
|
25
|
# improve devices.brennenstuhl_heatvalve
|
22
|
26
|
# improve the implementation in common if highly reduced, just move it to function.__init__.py
|
23
|
27
|
# TODO: implement garland (incl. day events like sunset, sunrise, ...)
|
|
@@ -71,6 +75,9 @@ class all_functions(object):
|
71
|
75
|
# Long push ffe_floor
|
72
|
76
|
self.ffe_floor.main_light_shelly.add_callback(devices.shelly.KEY_LONGPUSH_0, True, self.ffe_floor.all_off_feedback)
|
73
|
77
|
self.ffe_floor.main_light_shelly.add_callback(devices.shelly.KEY_LONGPUSH_0, True, self.ffe_off)
|
|
78
|
+ # Long push stairway
|
|
79
|
+ self.stw_stairway.main_light_shelly.add_callback(devices.shelly.KEY_LONGPUSH_0, True, self.stw_stairway.all_off_feedback)
|
|
80
|
+ self.stw_stairway.main_light_shelly.add_callback(devices.shelly.KEY_LONGPUSH_0, True, self.all_off)
|
74
|
81
|
# Long push input device
|
75
|
82
|
self.ffe_sleep.button_tradfri.add_callback(devices.tradfri_button.KEY_ACTION, devices.tradfri_button.ACTION_RIGHT_LONG, self.ffe_off)
|
76
|
83
|
|
|
@@ -121,7 +128,7 @@ class all_functions(object):
|
121
|
128
|
def gfw_dirk_input_1(self, device, key, data):
|
122
|
129
|
if self.last_gfw_dirk_input_1 is not None:
|
123
|
130
|
if self.last_gfw_dirk_input_1 != data:
|
124
|
|
- self.gfw_floor.main_light_shelly.toggle_main_light(device, key, data)
|
|
131
|
+ self.gfw_floor.main_light_shelly.toggle_output_0_mcb(device, key, data)
|
125
|
132
|
self.last_gfw_dirk_input_1 = data
|
126
|
133
|
|
127
|
134
|
def devicelist(self):
|