Music Player Daemon (MPD)

The Music Player Daemon integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] 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 service to load an existing saved playlist as part of an automation or scene.


To add the Music Player Daemon (MPD) integration to your Home Assistant instance, use this My button:

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

    - service: media_player.play_media
        entity_id: media_player.main
        media_content_type: playlist
        media_content_id: DeckMusic

    - service: media_player.volume_set
        entity_id: media_player.main
        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.