Browse Source

radiator valve added to gfw/dirk and gfw/marion

tags/v1.0.0
Dirk Alders 2 years ago
parent
commit
0690793ba8
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      function/ground_floor_west.py

+ 8
- 1
function/ground_floor_west.py View File

4
 
4
 
5
 import config
5
 import config
6
 import devices
6
 import devices
7
-from function.modules import brightness_choose_n_action
7
+from function.modules import brightness_choose_n_action, radiator_function
8
 import logging
8
 import logging
9
 from function.rooms import room_shelly, room_shelly_tradfri_light, room_shelly_silvercrest_light
9
 from function.rooms import room_shelly, room_shelly_tradfri_light, room_shelly_silvercrest_light
10
 import task
10
 import task
31
         super().send_init_message_main_light()
31
         super().send_init_message_main_light()
32
         self.main_light_tradfri_2.mqtt_client.send(self.main_light_tradfri_2.topic + "/get", '{"state": ""}')
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
 class ground_floor_west_marion(room_shelly):
39
 class ground_floor_west_marion(room_shelly):
36
     # http://shelly1l-E8DB84A1E067
40
     # http://shelly1l-E8DB84A1E067
80
         #
84
         #
81
         self.spotify_state = devices.audio_status(mqtt_client, config.TOPIC_GFW_DIRK_SPOTIFY)
85
         self.spotify_state = devices.audio_status(mqtt_client, config.TOPIC_GFW_DIRK_SPOTIFY)
82
         self.mpd_state = devices.audio_status(mqtt_client, config.TOPIC_GFW_DIRK_MPD)
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
         self.delayed_task = task.delayed(1.0, self.send_audio_source)
91
         self.delayed_task = task.delayed(1.0, self.send_audio_source)
85
         #
92
         #

Loading…
Cancel
Save