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
         self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_INP, props.DTY_TIN_5xx)            # Tradfri Input Device 5 Buttons
125
         self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_INP, props.DTY_TIN_5xx)            # Tradfri Input Device 5 Buttons
126
         self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_MPP, props.DTY_MPP_4xx)            # My 4 port Powerplug
126
         self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_MPP, props.DTY_MPP_4xx)            # My 4 port Powerplug
127
         self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_DEL, props.DTY_TLI_SBT)            # Tradfri Desklight
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
         self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_RCA, props.DTY_MRE_xxx)            # Remote Control IR Amplifier
129
         self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_RCA, props.DTY_MRE_xxx)            # Remote Control IR Amplifier
129
         self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_ASS, props.DTY_MAS_xxx)            # Audio status Spotify
130
         self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_ASS, props.DTY_MAS_xxx)            # Audio status Spotify
130
         self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_ASM, props.DTY_MAS_xxx)            # Audio status MPD
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
 """ Audio status mpd """
130
 """ Audio status mpd """
131
 FUN_ASB = 18
131
 FUN_ASB = 18
132
 """ Audio status bluetooth """
132
 """ Audio status bluetooth """
133
-
133
+FUN_DCK = 19
134
+""" Docking Station """
134
 
135
 
135
 class topic_by_props(UserString):
136
 class topic_by_props(UserString):
136
     def __init__(self, stg, loc, roo, fun):
137
     def __init__(self, stg, loc, roo, fun):
222
             FUN_HEA: 'heating_valve',
223
             FUN_HEA: 'heating_valve',
223
             FUN_MPP: 'powerplug',
224
             FUN_MPP: 'powerplug',
224
             FUN_INP: 'input_device',
225
             FUN_INP: 'input_device',
226
+            FUN_DCK: 'dock',
225
             FUN_CIR: 'circulation_pump',
227
             FUN_CIR: 'circulation_pump',
226
             FUN_GAR: 'garland',
228
             FUN_GAR: 'garland',
227
             FUN_XTR: 'xmas-tree',
229
             FUN_XTR: 'xmas-tree',

Loading…
Cancel
Save