Browse Source

Windowlights gfw/marion and ffw/sleep added

master
Dirk Alders 3 weeks ago
parent
commit
118e80f070
2 changed files with 8 additions and 4 deletions
  1. 2
    0
      devices.py
  2. 6
    4
      topic.py

+ 2
- 0
devices.py View File

@@ -114,6 +114,7 @@ class physical_devices(base):
114 114
         #
115 115
         self.add(mqtt_client, props.STG_SHE, loc, roo, props.FUN_MAL, props.DTY_SHY_SW1)            # Shelly Main Light
116 116
         self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_HEA, props.DTY_BVL_xxx)            # Brennenstuhl Heatingvalve
117
+        self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_WIL, props.DTY_TLI_SBT)            # Tradfri Windowlight
117 118
 
118 119
         # FLOOR
119 120
         roo = props.ROO_FLO
@@ -178,6 +179,7 @@ class physical_devices(base):
178 179
         self.add(mqtt_client, props.STG_SHE, loc, roo, props.FUN_MAL, props.DTY_SHY_SW1)            # Shelly Main Light
179 180
         self.add(mqtt_client, props.STG_ZFW, loc, roo, props.FUN_MAL, props.DTY_TLI_SBx)            # Tradfri Main Light
180 181
         self.add(mqtt_client, props.STG_ZFW, loc, roo, props.FUN_HEA, props.DTY_BVL_xxx)            # Brennenstuhl Heatingvalve
182
+        self.add(mqtt_client, props.STG_ZFW, loc, roo, props.FUN_WIL, props.DTY_TLI_SBT)            # Tradfri Windowlight
181 183
 
182 184
     def __init_ffe__(self, mqtt_client):
183 185
         loc = props.LOC_FFE

+ 6
- 4
topic.py View File

@@ -139,6 +139,8 @@ FUN_REP = 21
139 139
 """" Repeater suppla """
140 140
 FUN_WLI = 22
141 141
 """ Wardrobe light """
142
+FUN_WIL = 23
143
+""" Wardrobe light """
142 144
 
143 145
 
144 146
 class topic_by_props(UserString):
@@ -156,13 +158,12 @@ class topic_by_props(UserString):
156 158
 
157 159
     def __loc_repr__(self, loc):
158 160
         return {
159
-            LOC_GFW: 'gfw',
160 161
             LOC_GFE: 'gfe',
161
-            LOC_STW: 'stw',
162
-            LOC_FFW: 'ffw',
162
+            LOC_GFW: 'gfw',
163 163
             LOC_FFE: 'ffe',
164
-            LOC_STW: 'stw',
164
+            LOC_FFW: 'ffw',
165 165
             LOC_GAR: 'gar',
166
+            LOC_STW: 'stw',
166 167
         }.get(loc)
167 168
 
168 169
     def __roo_repr__(self, roo):
@@ -205,4 +206,5 @@ class topic_by_props(UserString):
205 206
             FUN_AMB: 'ambient',
206 207
             FUN_REP: 'repeater',
207 208
             FUN_WLI: 'wardrobe_light',
209
+            FUN_WIL: 'window_light',
208 210
         }.get(fun)

Loading…
Cancel
Save