diff --git a/devices.py b/devices.py index 9f4c5e5..926db42 100644 --- a/devices.py +++ b/devices.py @@ -5,7 +5,6 @@ from devdi import topic as props from devdi.topic import topic_by_props import devices import logging -import sys try: from config import APP_NAME as ROOT_LOGGER_NAME @@ -21,6 +20,7 @@ class base(dict): def __dty_repr__(self, dty): return { props.DTY_SHY_SW1: devices.shelly_sw1, + props.DTY_HLI_SBT: devices.hue_sw_br_ct, props.DTY_TLI_Sxx: devices.tradfri_sw, props.DTY_TLI_SBx: devices.tradfri_sw_br, props.DTY_TLI_SBT: devices.tradfri_sw_br_ct, @@ -193,6 +193,7 @@ class physical_devices(base): # self.add(mqtt_client, props.STG_SHE, loc, roo, props.FUN_MAL, props.DTY_SHY_SW1) # Shelly Main Light self.add(mqtt_client, props.STG_SHE, loc, roo, props.FUN_CIR, props.DTY_SHY_SW1) # Shelly Main Light + self.add(mqtt_client, props.STG_ZFE, loc, roo, props.FUN_MAL, props.DTY_HLI_SBT, 2) # Hue Main Light self.add(mqtt_client, props.STG_ZFE, loc, roo, props.FUN_HEA, props.DTY_BVL_xxx) # Brennenstuhl Heatingvalve # DININGROOM diff --git a/topic.py b/topic.py index 10cbd19..1167c54 100644 --- a/topic.py +++ b/topic.py @@ -29,6 +29,8 @@ DTY_MRE_xxx = 12 """ My Remote control """ DTY_MAM_THP = 13 """ My Ambient Information (Temperature, Humidity, Pressure)""" +DTY_HLI_SBT = 14 +""" Hue Light (Switching, Brightnes and Colortemperature) """ # # Source Transmission Group