radiator valve added to gfw/dirk and gfw/marion

This commit is contained in:
Dirk Alders 2023-01-10 19:15:04 +01:00
parent 837d77900d
commit 0690793ba8

View File

@ -4,7 +4,7 @@
import config
import devices
from function.modules import brightness_choose_n_action
from function.modules import brightness_choose_n_action, radiator_function
import logging
from function.rooms import room_shelly, room_shelly_tradfri_light, room_shelly_silvercrest_light
import task
@ -31,6 +31,10 @@ class ground_floor_west_floor(room_shelly_silvercrest_light):
super().send_init_message_main_light()
self.main_light_tradfri_2.mqtt_client.send(self.main_light_tradfri_2.topic + "/get", '{"state": ""}')
# radiator valve
self.radiator_function = radiator_function(mqtt_client, config.TOPIC_GFW_MARION_RADIATOR_VALVE_ZIGBEE,
config.TOPIC_GFW_MARION_RADIATOR_VALVE_GUI, config.DEFAULT_TEMPERATURE_GFW_MARION)
class ground_floor_west_marion(room_shelly):
# http://shelly1l-E8DB84A1E067
@ -80,6 +84,9 @@ class ground_floor_west_dirk(room_shelly_tradfri_light):
#
self.spotify_state = devices.audio_status(mqtt_client, config.TOPIC_GFW_DIRK_SPOTIFY)
self.mpd_state = devices.audio_status(mqtt_client, config.TOPIC_GFW_DIRK_MPD)
# radiator valve
self.radiator_function = radiator_function(mqtt_client, config.TOPIC_GFW_DIRK_RADIATOR_VALVE_ZIGBEE,
config.TOPIC_GFW_DIRK_RADIATOR_VALVE_GUI, config.DEFAULT_TEMPERATURE_GFW_DIRK)
#
self.delayed_task = task.delayed(1.0, self.send_audio_source)
#