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
         #
114
         #
115
         self.add(mqtt_client, props.STG_SHE, loc, roo, props.FUN_MAL, props.DTY_SHY_SW1)            # Shelly Main Light
115
         self.add(mqtt_client, props.STG_SHE, loc, roo, props.FUN_MAL, props.DTY_SHY_SW1)            # Shelly Main Light
116
         self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_HEA, props.DTY_BVL_xxx)            # Brennenstuhl Heatingvalve
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
         # FLOOR
119
         # FLOOR
119
         roo = props.ROO_FLO
120
         roo = props.ROO_FLO
178
         self.add(mqtt_client, props.STG_SHE, loc, roo, props.FUN_MAL, props.DTY_SHY_SW1)            # Shelly Main Light
179
         self.add(mqtt_client, props.STG_SHE, loc, roo, props.FUN_MAL, props.DTY_SHY_SW1)            # Shelly Main Light
179
         self.add(mqtt_client, props.STG_ZFW, loc, roo, props.FUN_MAL, props.DTY_TLI_SBx)            # Tradfri Main Light
180
         self.add(mqtt_client, props.STG_ZFW, loc, roo, props.FUN_MAL, props.DTY_TLI_SBx)            # Tradfri Main Light
180
         self.add(mqtt_client, props.STG_ZFW, loc, roo, props.FUN_HEA, props.DTY_BVL_xxx)            # Brennenstuhl Heatingvalve
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
     def __init_ffe__(self, mqtt_client):
184
     def __init_ffe__(self, mqtt_client):
183
         loc = props.LOC_FFE
185
         loc = props.LOC_FFE

+ 6
- 4
topic.py View File

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

Loading…
Cancel
Save