Explorar el Código

radiator valve added to gfw/dirk and gfw/marion

tags/v1.0.0
Dirk Alders hace 2 años
padre
commit
0690793ba8
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8
    1
      function/ground_floor_west.py

+ 8
- 1
function/ground_floor_west.py Ver fichero

@@ -4,7 +4,7 @@
4 4
 
5 5
 import config
6 6
 import devices
7
-from function.modules import brightness_choose_n_action
7
+from function.modules import brightness_choose_n_action, radiator_function
8 8
 import logging
9 9
 from function.rooms import room_shelly, room_shelly_tradfri_light, room_shelly_silvercrest_light
10 10
 import task
@@ -31,6 +31,10 @@ class ground_floor_west_floor(room_shelly_silvercrest_light):
31 31
         super().send_init_message_main_light()
32 32
         self.main_light_tradfri_2.mqtt_client.send(self.main_light_tradfri_2.topic + "/get", '{"state": ""}')
33 33
 
34
+        # radiator valve
35
+        self.radiator_function = radiator_function(mqtt_client, config.TOPIC_GFW_MARION_RADIATOR_VALVE_ZIGBEE,
36
+                                                   config.TOPIC_GFW_MARION_RADIATOR_VALVE_GUI, config.DEFAULT_TEMPERATURE_GFW_MARION)
37
+
34 38
 
35 39
 class ground_floor_west_marion(room_shelly):
36 40
     # http://shelly1l-E8DB84A1E067
@@ -80,6 +84,9 @@ class ground_floor_west_dirk(room_shelly_tradfri_light):
80 84
         #
81 85
         self.spotify_state = devices.audio_status(mqtt_client, config.TOPIC_GFW_DIRK_SPOTIFY)
82 86
         self.mpd_state = devices.audio_status(mqtt_client, config.TOPIC_GFW_DIRK_MPD)
87
+        # radiator valve
88
+        self.radiator_function = radiator_function(mqtt_client, config.TOPIC_GFW_DIRK_RADIATOR_VALVE_ZIGBEE,
89
+                                                   config.TOPIC_GFW_DIRK_RADIATOR_VALVE_GUI, config.DEFAULT_TEMPERATURE_GFW_DIRK)
83 90
         #
84 91
         self.delayed_task = task.delayed(1.0, self.send_audio_source)
85 92
         #

Loading…
Cancelar
Guardar