Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Controlling volume Moode Sender via MPD (Multiroom)
#1
I was running Moode flawless connected to HomeAssistant, using MPD. I was able to control the music and volume from HomeAssistant.

I added a second Moode player, and switched to MultiRoom, so with 1 sender and 2 receivers.

I now am unable to control the volume via MPD. Any thoughts or tips?
Reply
#2
What do you mean by "controlling volume via MPD"?
Is this from a HomeAssistant screen?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(01-17-2024, 09:34 PM)Tim Curtis Wrote: What do you mean by "controlling volume via MPD"?
Is this from a HomeAssistant screen?

Correct

[Image: gnSXbfrh79g5OmeFQG7BAFbW.jpg]

Configuration. yaml:

media_player:
- platform: mpd
host: 192.168.86.XX
name: moOde
Reply
#4
What is the command string that HA is sending to moOde to set the volume?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
(01-17-2024, 11:47 PM)Tim Curtis Wrote: What is the command string that HA is sending to moOde to set the volume?

This is what I find in the logs. Not sure if this is what you need.


Code:
this:
  entity_id: automation.moode_now_playing_mqtt_publish
  state: 'on'
  attributes:
    id: '1704743637148'
    last_triggered: '2024-01-19T08:10:41.297010+00:00'
    mode: single
    current: 0
    friendly_name: button plus moode now playing publish
  last_changed: '2024-01-17T14:58:55.288010+00:00'
  last_updated: '2024-01-19T08:10:41.304355+00:00'
  context:
    id: 01HMGCBA8GHHXWNC1J0D3FP00F
    parent_id: 01HMGCBA8DQJ4XPBT51XE3R14Y
    user_id: null
trigger:
  id: '1'
  idx: '1'
  alias: null
  platform: state
  entity_id: media_player.moode
  from_state:
    entity_id: media_player.moode
    state: playing
    attributes:
      source_list:
        - Favorites
        - Default Playlist
      volume_level: 0.24
      is_volume_muted: false
      media_content_id: >-
        http://playerservices.streamtheworld.com/api/livestream-redirect/SRGSTR04.mp3
      media_content_type: music
      media_duration: '0'
      media_position: 76
      media_position_updated_at: '2024-01-19T08:11:31.295666+00:00'
      media_title: 'Sky Radio 80''s Hits: Cyndi Lauper - Girls Just Wanna Have Fun'
      shuffle: false
      repeat: 'off'
      friendly_name: MoOde
      supported_features: 458687
    last_changed: '2024-01-19T08:10:14.283281+00:00'
    last_updated: '2024-01-19T08:11:31.296061+00:00'
    context:
      id: 01HMGCCV30874GBMPA9WV44MYP
      parent_id: null
      user_id: null
        to_state:
    entity_id: media_player.moode
    state: playing
    attributes:
      source_list:
        - Favorites
        - Default Playlist
      volume_level: 0.32
      is_volume_muted: false
      media_content_id: >-
        http://playerservices.streamtheworld.com/api/livestream-redirect/SRGSTR04.mp3
      media_content_type: music
      media_duration: '0'
      media_position: 80
      media_position_updated_at: '2024-01-19T08:11:34.616836+00:00'
      media_title: 'Sky Radio 80''s Hits: Cyndi Lauper - Girls Just Wanna Have Fun'
      shuffle: false
      repeat: 'off'
      friendly_name: MoOde
      supported_features: 458687
    last_changed: '2024-01-19T08:10:14.283281+00:00'
    last_updated: '2024-01-19T08:11:34.617216+00:00'
    context:
      id: 01HMGCCYAB6CW53WMYT8PTK85D
      parent_id: null
      user_id: 6460e6a137ee47ae978ca28717835ce2
  for: null
  attribute: volume_level
  description: state of media_player.moode
Reply
#6
I'm not familiar with HA and so not sure what that file is doing.

In any case after looking at the code, volume changes for Multiroom sender can only be made by clicking the volume knob. A REST API (command) could be created for doing this but it looks like it would be somewhat involved and so there would need to be more requests for something like this.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
That is a bummer.

Strange thing is that all other mpd functions are working flawlessly and swift. Stop, play, pause is working like a charm. I can also browse my local media on the HomeAssistant and play them instantly. I can browse internet radio streams on HA end play start any of them on both off my moOde players (Multiroom). It's just the volume control that lacks functioning.

Reason for this requirement is that I have a Button+ display (http://button.plus) next to me on a side table, where I can control my audio on the moOde. Start, stop, selecting radio and yes, volume. Until I added a second moOde multi room.. As said, a bummer..

So if I can help in any way to overcome this, please let me know.
Reply
#8
The best way to help is to provide information that can be used to understand:

1. The format of the commands that are sent to to moOde along with with a set of actual examples
2. What communication protocol is used (http, other) and what protocols are available

It's the only way to know whether or how a new command can be developed that can be used to control volume for a Multiroom setup.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#9
(01-20-2024, 03:36 PM)Tim Curtis Wrote: The best way to help is to provide information that can be used to understand:

1. The format of the commands that are sent to to moOde along with with a set of actual examples
2. What communication protocol is used (http, other) and what protocols are available

It's the only way to know whether or how a new command can be developed that can be used to control volume for a Multiroom setup.

Quoted from the Home Assistant MPD integration page:

"This platform works with Music Player Daemon and mopidy with Mopidy-MPD as used by Pi MusicBox. While all of these rely on the common MPD protocol, not all implementations support all features, especially with regard to album artwork, embedded artwork and volume control. The platform will fall back gracefully if support isn’t detected."

https://www.home-assistant.io/integrations/mpd/

They do warn that volume may not be suported in all cases.
Reply
#10
(01-20-2024, 06:42 PM)ubergoober Wrote:
(01-20-2024, 03:36 PM)Tim Curtis Wrote: The best way to help is to provide information that can be used to understand:

1. The format of the commands that are sent to to moOde along with with a set of actual examples
2. What communication protocol is used (http, other) and what protocols are available

It's the only way to know whether or how a new command can be developed that can be used to control volume for a Multiroom setup.

Quoted from the Home Assistant MPD integration page:

"This platform works with Music Player Daemon and mopidy with Mopidy-MPD as used by Pi MusicBox. While all of these rely on the common MPD protocol, not all implementations support all features, especially with regard to album artwork, embedded artwork and volume control. The platform will fall back gracefully if support isn’t detected."

https://www.home-assistant.io/integrations/mpd/

They do warn that volume may not be suported in all cases.

From what I can read online this thing is meant to talk directly to MPD, it opens a session to it and sends it commands; so it doesn't talk with moOde at all.
Reply


Forum Jump: