Bluetooth audio status added

This commit is contained in:
Dirk Alders 2024-02-11 15:44:21 +01:00
parent 0620158064
commit 2e66d0e274
2 changed files with 6 additions and 0 deletions

View File

@ -128,6 +128,7 @@ class physical_devices(base):
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
self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_ASB, props.DTY_MAS_xxx) # Audio status Bluetooth
self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_HEA, props.DTY_BVL_xxx) # Brennenstuhl Heatingvalve
# GARDEN

View File

@ -128,6 +128,8 @@ FUN_ASS = 16
""" Audio status spotify """
FUN_ASM = 17
""" Audio status mpd """
FUN_ASB = 18
""" Audio status bluetooth """
class topic_by_props(UserString):
@ -157,6 +159,8 @@ class topic_by_props(UserString):
return "my_apps/gfw/dirk/hifi/spotify"
elif stg == STG_MYA and loc == LOC_GFW and roo == ROO_DIR and fun == FUN_ASM:
return "my_apps/gfw/dirk/hifi/mpd"
elif stg == STG_MYA and loc == LOC_GFW and roo == ROO_DIR and fun == FUN_ASB:
return "my_apps/gfw/dirk/hifi/btaudio"
elif stg == STG_ZFE and loc == LOC_FFE and roo == ROO_DIN and fun == FUN_FLL:
return "zigbee/ffe/diningroom/powerplug_floorlamp"
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):
FUN_RCC: 'remote_ctrl_cd',
FUN_ASS: 'audio_status_spotify',
FUN_ASM: 'audio_status_mpd',
FUN_ASB: 'audio_status_bt',
}.get(fun)