Browse Source

added tardfri powerport - gfw dock

master
Dirk Alders 5 months ago
parent
commit
fc1f86ab5a
2 changed files with 4 additions and 1 deletions
  1. 1
    0
      devices.py
  2. 3
    1
      topic.py

+ 1
- 0
devices.py View File

@@ -125,6 +125,7 @@ class physical_devices(base):
125 125
         self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_INP, props.DTY_TIN_5xx)            # Tradfri Input Device 5 Buttons
126 126
         self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_MPP, props.DTY_MPP_4xx)            # My 4 port Powerplug
127 127
         self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_DEL, props.DTY_TLI_SBT)            # Tradfri Desklight
128
+        self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_DCK, props.DTY_SPP_SW1)            # Tradfri 1 port Powerplug
128 129
         self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_RCA, props.DTY_MRE_xxx)            # Remote Control IR Amplifier
129 130
         self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_ASS, props.DTY_MAS_xxx)            # Audio status Spotify
130 131
         self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_ASM, props.DTY_MAS_xxx)            # Audio status MPD

+ 3
- 1
topic.py View File

@@ -130,7 +130,8 @@ FUN_ASM = 17
130 130
 """ Audio status mpd """
131 131
 FUN_ASB = 18
132 132
 """ Audio status bluetooth """
133
-
133
+FUN_DCK = 19
134
+""" Docking Station """
134 135
 
135 136
 class topic_by_props(UserString):
136 137
     def __init__(self, stg, loc, roo, fun):
@@ -222,6 +223,7 @@ class topic_by_props(UserString):
222 223
             FUN_HEA: 'heating_valve',
223 224
             FUN_MPP: 'powerplug',
224 225
             FUN_INP: 'input_device',
226
+            FUN_DCK: 'dock',
225 227
             FUN_CIR: 'circulation_pump',
226 228
             FUN_GAR: 'garland',
227 229
             FUN_XTR: 'xmas-tree',

Loading…
Cancel
Save