Parcourir la source

Heatingvalves added

tags/v1.3.0
Dirk Alders il y a 10 mois
Parent
révision
e0408bf5f6
3 fichiers modifiés avec 17 ajouts et 16 suppressions
  1. 1
    1
      devdi
  2. 15
    15
      function/first_floor_west.py
  3. 1
    0
      topics.py

+ 1
- 1
devdi

@@ -1 +1 @@
1
-Subproject commit 5a94efbc8c4ca7e1a7ef6f40df53177717bb7c16
1
+Subproject commit 0620158064ab5bbb932c2afb9f557cf0b18b37e3

+ 15
- 15
function/first_floor_west.py Voir le fichier

@@ -111,20 +111,20 @@ class first_floor_west_living(room):
111 111
         # main light
112 112
         self.main_light_shelly = pd.get(props.STG_SHE, loc, roo, props.FUN_MAL)
113 113
         self.main_light_tradfri = pd.get(props.STG_ZFW, loc, roo, props.FUN_MAL)
114
-        # # heating function
115
-        # self.heating_valve = pd.get(props.STG_ZFW, loc, roo, props.FUN_HEA)
114
+        # heating function
115
+        self.heating_valve = pd.get(props.STG_ZFW, loc, roo, props.FUN_HEA)
116 116
         super().__init__(mqtt_client, pd, vd)
117 117
 
118 118
         #
119 119
         # Functionality initialisation
120 120
         #
121
-        # # heating function
122
-        # self.heating_function = heating_function(
123
-        #     self.heating_valve,
124
-        #     config.DEFAULT_TEMPERATURE[self.heating_valve.topic],
125
-        #     **get_radiator_data(self.heating_valve.topic)
126
-        # )
127
-        # self.heating_function.add_callback(None, None, set_radiator_data, True)
121
+        # heating function
122
+        self.heating_function = heating_function(
123
+            self.heating_valve,
124
+            config.DEFAULT_TEMPERATURE,
125
+            **get_radiator_data(self.heating_valve.topic)
126
+        )
127
+        self.heating_function.add_callback(None, None, set_radiator_data, True)
128 128
 
129 129
         #
130 130
         # Virtual Device Interface
@@ -136,11 +136,11 @@ class first_floor_west_living(room):
136 136
             self.main_light_tradfri, self.main_light_tradfri.KEY_BRIGHTNESS,
137 137
             self.main_light_tradfri, self.main_light_tradfri.KEY_COLOR_TEMP
138 138
         )
139
-        # # heating function
140
-        # self.heating_function_videv = videv_heating(
141
-        #     mqtt_client, config.TOPIC_FFW_LIVINGROOM_HEATING_VALVE_VIDEV,
142
-        #     self.heating_function
143
-        # )
139
+        # heating function
140
+        self.heating_function_videv = videv_heating(
141
+            mqtt_client, config.TOPIC_FFW_LIVINGROOM_HEATING_VALVE_VIDEV,
142
+            self.heating_function
143
+        )
144 144
 
145 145
 
146 146
 class first_floor_west_sleep(room):
@@ -157,7 +157,7 @@ class first_floor_west_sleep(room):
157 157
         self.heating_valve = pd.get(props.STG_ZFW, loc, roo, props.FUN_HEA)
158 158
         super().__init__(mqtt_client, pd, vd)
159 159
 
160
-        #
160
+        #  
161 161
         # Functionality initialisation
162 162
         #
163 163
         # heating function

+ 1
- 0
topics.py Voir le fichier

@@ -32,6 +32,7 @@ TOPIC_FFW_BATH_HEATING_VALVE_VIDEV = "videv/ffw/bath/heating_valve"
32 32
 
33 33
 # livingroom
34 34
 TOPIC_FFW_LIVINGROOM_MAIN_LIGHT_VIDEV = "videv/ffw/livingroom/main_light"
35
+TOPIC_FFW_LIVINGROOM_HEATING_VALVE_VIDEV = "videv/ffw/livingroom/heating_valve"
35 36
 
36 37
 # sleep
37 38
 TOPIC_FFW_SLEEP_MAIN_LIGHT_VIDEV = "videv/ffw/sleep/main_light"

Chargement…
Annuler
Enregistrer