Browse Source

Bluetooth audio status added

master
Dirk Alders 11 months ago
parent
commit
2e66d0e274
2 changed files with 6 additions and 0 deletions
  1. 1
    0
      devices.py
  2. 5
    0
      topic.py

+ 1
- 0
devices.py View File

128
         self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_RCA, props.DTY_MRE_xxx)            # Remote Control IR Amplifier
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_ASS, props.DTY_MAS_xxx)            # Audio status Spotify
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_ASM, props.DTY_MAS_xxx)            # Audio status MPD
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
         self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_HEA, props.DTY_BVL_xxx)            # Brennenstuhl Heatingvalve
132
         self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_HEA, props.DTY_BVL_xxx)            # Brennenstuhl Heatingvalve
132
 
133
 
133
         # GARDEN
134
         # GARDEN

+ 5
- 0
topic.py View File

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

Loading…
Cancel
Save