From fc1f86ab5aa532373f628a27fd181a4fe627e718 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Wed, 26 Jun 2024 21:11:26 +0200 Subject: [PATCH] added tardfri powerport - gfw dock --- devices.py | 1 + topic.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/devices.py b/devices.py index 7e76051..43857df 100644 --- a/devices.py +++ b/devices.py @@ -125,6 +125,7 @@ class physical_devices(base): self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_INP, props.DTY_TIN_5xx) # Tradfri Input Device 5 Buttons self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_MPP, props.DTY_MPP_4xx) # My 4 port Powerplug self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_DEL, props.DTY_TLI_SBT) # Tradfri Desklight + self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_DCK, props.DTY_SPP_SW1) # Tradfri 1 port Powerplug self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_RCA, props.DTY_MRE_xxx) # Remote Control IR Amplifier self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_ASS, props.DTY_MAS_xxx) # Audio status Spotify self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_ASM, props.DTY_MAS_xxx) # Audio status MPD diff --git a/topic.py b/topic.py index 4346aa5..9c49a35 100644 --- a/topic.py +++ b/topic.py @@ -130,7 +130,8 @@ FUN_ASM = 17 """ Audio status mpd """ FUN_ASB = 18 """ Audio status bluetooth """ - +FUN_DCK = 19 +""" Docking Station """ class topic_by_props(UserString): def __init__(self, stg, loc, roo, fun): @@ -222,6 +223,7 @@ class topic_by_props(UserString): FUN_HEA: 'heating_valve', FUN_MPP: 'powerplug', FUN_INP: 'input_device', + FUN_DCK: 'dock', FUN_CIR: 'circulation_pump', FUN_GAR: 'garland', FUN_XTR: 'xmas-tree',