|
@@ -68,6 +68,8 @@ class ground_floor_west_marion(room):
|
68
|
68
|
self.main_light_shelly = pd.get(props.STG_SHE, loc, roo, props.FUN_MAL)
|
69
|
69
|
# heating function
|
70
|
70
|
self.heating_valve = pd.get(props.STG_ZGW, loc, roo, props.FUN_HEA)
|
|
71
|
+ # window light
|
|
72
|
+ self.window_light = pd.get(props.STG_ZGW, loc, roo, props.FUN_WIL)
|
71
|
73
|
super().__init__(mqtt_client, pd, vd)
|
72
|
74
|
|
73
|
75
|
#
|
|
@@ -81,6 +83,9 @@ class ground_floor_west_marion(room):
|
81
|
83
|
)
|
82
|
84
|
self.heating_function.add_callback(None, None, set_radiator_data, True)
|
83
|
85
|
|
|
86
|
+ # main light
|
|
87
|
+ self.main_light_shelly.add_callback(self.main_light_shelly.KEY_OUTPUT_0, None, self.window_light.set_output_0_mcb, True)
|
|
88
|
+
|
84
|
89
|
#
|
85
|
90
|
# Virtual Device Interface
|
86
|
91
|
#
|
|
@@ -92,6 +97,13 @@ class ground_floor_west_marion(room):
|
92
|
97
|
mqtt_client, config.TOPIC_GFW_MARION_HEATING_VALVE_VIDEV,
|
93
|
98
|
self.heating_function
|
94
|
99
|
)
|
|
100
|
+ # window lamp
|
|
101
|
+ self.windowlamp_videv = videv_switch_brightness_color_temp(
|
|
102
|
+ mqtt_client, config.TOPIC_GFW_MARION_WINDOW_LAMP_VIDEV,
|
|
103
|
+ self.window_light, self.window_light.KEY_OUTPUT_0,
|
|
104
|
+ self.window_light, self.window_light.KEY_BRIGHTNESS,
|
|
105
|
+ self.window_light, self.window_light.KEY_COLOR_TEMP
|
|
106
|
+ )
|
95
|
107
|
|
96
|
108
|
|
97
|
109
|
class ground_floor_west_dirk(room):
|