2024-07-31 22:58:50 +02:00

1.7 KiB

title, description, ha_category, ha_release, ha_iot_class, ha_domain, ha_platforms, ha_integration_type, related, ha_config_flow
title description ha_category ha_release ha_iot_class ha_domain ha_platforms ha_integration_type related ha_config_flow
Music Player Daemon (MPD) Instructions on how to integrate Music Player Daemon into Home Assistant.
Media player
pre 0.7 Local Polling mpd
media_player
integration
docs title
/docs/configuration/ Configuration file
true

The Music Player Daemon {% term integration %} allows you to control a Music Player Daemon from Home Assistant. Unfortunately, it does not allow you to manipulate the playlist (add or delete songs) or add transitions between the songs.

Even though no playlist manipulation is possible, it is possible to use the play_media action to load an existing saved playlist as part of an automation or scene.

{% include integrations/config_flow.md %}

Example script to load a saved playlist called "DeckMusic" and set the volume:

relaxdeck:
    sequence:
    - action: media_player.play_media
      target:
        entity_id: media_player.main
      data:
        media_content_type: playlist
        media_content_id: DeckMusic

    - action: media_player.volume_set
      target:
        entity_id: media_player.main
      data:
        volume_level: 0.60

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.