Bladeren bron

Bluetooth audio status added

master
Dirk Alders 10 maanden geleden
bovenliggende
commit
2e66d0e274
2 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 1
    0
      devices.py
  2. 5
    0
      topic.py

+ 1
- 0
devices.py Bestand weergeven

@@ -128,6 +128,7 @@ class physical_devices(base):
128 128
         self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_RCA, props.DTY_MRE_xxx)            # Remote Control IR Amplifier
129 129
         self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_ASS, props.DTY_MAS_xxx)            # Audio status Spotify
130 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_ASB, props.DTY_MAS_xxx)            # Audio status Bluetooth
131 132
         self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_HEA, props.DTY_BVL_xxx)            # Brennenstuhl Heatingvalve
132 133
 
133 134
         # GARDEN

+ 5
- 0
topic.py Bestand weergeven

@@ -128,6 +128,8 @@ FUN_ASS = 16
128 128
 """ Audio status spotify """
129 129
 FUN_ASM = 17
130 130
 """ Audio status mpd """
131
+FUN_ASB = 18
132
+""" Audio status bluetooth """
131 133
 
132 134
 
133 135
 class topic_by_props(UserString):
@@ -157,6 +159,8 @@ class topic_by_props(UserString):
157 159
             return "my_apps/gfw/dirk/hifi/spotify"
158 160
         elif stg == STG_MYA and loc == LOC_GFW and roo == ROO_DIR and fun == FUN_ASM:
159 161
             return "my_apps/gfw/dirk/hifi/mpd"
162
+        elif stg == STG_MYA and loc == LOC_GFW and roo == ROO_DIR and fun == FUN_ASB:
163
+            return "my_apps/gfw/dirk/hifi/btaudio"
160 164
         elif stg == STG_ZFE and loc == LOC_FFE and roo == ROO_DIN and fun == FUN_FLL:
161 165
             return "zigbee/ffe/diningroom/powerplug_floorlamp"
162 166
         elif stg == STG_ZFE and loc == LOC_FFE and roo == ROO_LIV and fun == FUN_FLL:
@@ -227,4 +231,5 @@ class topic_by_props(UserString):
227 231
             FUN_RCC: 'remote_ctrl_cd',
228 232
             FUN_ASS: 'audio_status_spotify',
229 233
             FUN_ASM: 'audio_status_mpd',
234
+            FUN_ASB: 'audio_status_bt',
230 235
         }.get(fun)

Laden…
Annuleren
Opslaan