diff --git a/rooms.py b/rooms.py index 70ae9ef..214a9b0 100644 --- a/rooms.py +++ b/rooms.py @@ -76,6 +76,8 @@ The device names in the room classes follow this definition: ambient_info videv_heating + videv_multistate + input_device @@ -101,7 +103,9 @@ from devices import my_ambient from devices import videv_sw from devices import videv_sw_br from devices import videv_sw_br_ct +from devices import videv_sw_tm from devices import videv_hea +from devices import videv_multistate # # try: @@ -167,7 +171,7 @@ class ffe_kitchen(base_room): # http://shelly1-e89f6d85a466 self.switch_circulation_pump = shelly_sw1(mqtt_client, get_topic(props.STG_SHE, loc, roo, props.FUN_CIR)) - self.videv_circulation_pump = videv_sw(mqtt_client, get_topic(props.STG_VDE, loc, roo, props.FUN_CIR)) + self.videv_circulation_pump = videv_sw_tm(mqtt_client, get_topic(props.STG_VDE, loc, roo, props.FUN_CIR)) self.valve_heating = brennenstuhl_heatingvalve(mqtt_client, get_topic(props.STG_ZFE, loc, roo, props.FUN_HEA)) self.videv_heating = videv_hea(mqtt_client, get_topic(props.STG_VDE, loc, roo, props.FUN_HEA)) @@ -223,6 +227,8 @@ class ffe_sleep(base_room): self.valve_heating = brennenstuhl_heatingvalve(mqtt_client, get_topic(props.STG_ZFE, loc, roo, props.FUN_HEA)) self.videv_heating = videv_hea(mqtt_client, get_topic(props.STG_VDE, loc, roo, props.FUN_HEA)) + self.videv_multistate = videv_multistate(mqtt_client, get_topic(props.STG_VDE, loc, roo, props.FUN_VMS)) + # # FFW ############################################################################################# diff --git a/topic.py b/topic.py index b29b59f..46ad94f 100644 --- a/topic.py +++ b/topic.py @@ -153,6 +153,8 @@ FUN_BTP = 26 """ Bluetooth """ FUN_PHO = 27 """ Phono """ +FUN_VMS = 28 +""" Virtual Multi State""" STG_TOPIC = { @@ -216,6 +218,7 @@ FUN_TOPIC = { FUN_CDP: 'cd_player', FUN_BTP: 'bt', FUN_PHO: 'phono', + FUN_VMS: 'active_brightness_device', }