Forked-daapd and media player services

Oooh yes :slight_smile:

Thanks, I will update the manifest.json with a version for use as a custom component.

Added experimental Spotify browsing support if the Spotify component is installed.
Note that I won’t merge this feature anytime soon as a proper implementation requires changes to the Spotify component.

The changes I’ve made to update the media browsing functionality have been pulled into the HA 2022.10 beta and will be in HA starting from 2022.10 onwards.
I will make some changes to change the volume setting behavior when I have some time, but since I haven’t seen much feedback here regarding my recent changes except from @ddppddpp, I am not going to make this a priority.

2 Likes

I’ve just upgraded to latest version and I wanted to thank you @uvjustin for the good work! It now works as expected :slight_smile:

Anyone know how to prevent the Owntone integration from auto connecting to all available speakers with playing from the HA media player? This only happens when playing something from HA to the Owntone server so I think it’s an integration issue.

How did you achieve this interface?

a vertical stack card and also some conditionals.
I did it with the visual editor but here’s the yml code.


type: vertical-stack
cards:
  - type: media-control
    entity: media_player.forked_daapd_server
  - type: entities
    entities:
      - entity: switch.livingroom_speaker
        name: Домашно кино
        icon: mdi:surround-sound-5-1-2
    show_header_toggle: false
  - type: conditional
    conditions:
      - entity: switch.livingroom_speaker
        state: 'on'
    card:
      type: entities
      entities:
        - entity: input_number.livingroom_volume_slider
          name: Volume
          icon: none
      show_header_toggle: false
  - type: entities
    entities:
      - entity: switch.stereo_speaker
        icon: mdi:surround-sound-2-0
        name: Стерео
    show_header_toggle: false
  - type: conditional
    conditions:
      - entity: switch.stereo_speaker
        state: 'on'
    card:
      type: entities
      entities:
        - entity: input_number.stereo_volume_slider
          name: Volume
          icon: none
      show_header_toggle: false
  - type: entities
    entities:
      - entity: switch.kitchen_speaker
        icon: mdi:radio
        name: Кухня
    show_header_toggle: false
  - type: conditional
    conditions:
      - entity: switch.kitchen_speaker
        state: 'on'
    card:
      type: entities
      entities:
        - entity: input_number.kitchen_volume_slider
          name: Volume
          icon: none
      show_header_toggle: false
  - type: entities
    entities:
      - entity: switch.study_speaker
        icon: mdi:surround-sound-2-1
        name: Кабинет
    show_header_toggle: false
  - type: conditional
    conditions:
      - entity: switch.study_speaker
        state: 'on'
    card:
      type: entities
      entities:
        - entity: input_number.study_volume_slider
          icon: none
          name: Volume
      show_header_toggle: false
  - type: entities
    entities:
      - entity: switch.nursery_speaker
        icon: mdi:speaker
        name: Детска
    show_header_toggle: false
  - type: conditional
    conditions:
      - entity: switch.nursery_speaker
        state: 'on'
    card:
      type: entities
      entities:
        - entity: input_number.nursery_volume_slider
          icon: none
          name: Volume
      show_header_toggle: false
  - type: entities
    entities:
      - entity: switch.bedroom_speaker
        icon: mdi:surround-sound-2-1
        name: Спалня
    show_header_toggle: false
  - type: conditional
    conditions:
      - entity: switch.bedroom_speaker
        state: 'on'
    card:
      type: entities
      entities:
        - entity: input_number.bedroom_volume_slider
          icon: none
          name: Volume
      show_header_toggle: false
  - type: entities
    entities: []
    footer:
      type: buttons
      entities:
        - entity: switch.start_forkeddaapd
          icon: mdi:play
        - entity: switch.stop_forkeddaapd
          icon: mdi:stop
        - entity: switch.restrart_forkeddaapd
          icon: mdi:restart
        - entity: switch.start_multiroom_audio
          icon: mdi:play
        - entity: switch.stop_multiroom_audio
          icon: mdi:stop
        - entity: switch.restart_multiroom_audio
          icon: mdi:restart

hi @uvjustin , I am running into some issues when I use TTS through the HA media player. What happens when I send a TTS all the speakers are connected and they all play the TTS. I see a few posts up that this was fixed, is this expected behavior? Is there anyway around it?