From 0b533d745cd6c67918e1615243454701680be631 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sun, 9 Jun 2024 16:01:26 +0200 Subject: [PATCH] Add config flow to MPD (#32962) Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --- source/_integrations/mpd.markdown | 33 ++----------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/source/_integrations/mpd.markdown b/source/_integrations/mpd.markdown index be76527d973..8140f0f7cf7 100644 --- a/source/_integrations/mpd.markdown +++ b/source/_integrations/mpd.markdown @@ -14,40 +14,11 @@ related: title: Configuration file --- -The `mpd` {% term integration %} allows you to control a [Music Player Daemon](https://www.musicpd.org/) from Home Assistant. Unfortunately you will not be able to manipulate the playlist (add or delete songs) or add transitions between the songs. +The Music Player Daemon {% term integration %} allows you to control a [Music Player Daemon](https://www.musicpd.org/) 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 MPD to your installation, add the following to your {% term "`configuration.yaml`" %} file. -{% include integrations/restart_ha_after_config_inclusion.md %} - -```yaml -# Example configuration.yaml entry -media_player: - - platform: mpd - host: IP_ADDRESS -``` - -{% configuration %} -host: - description: Hostname or IP address of the Host where Music Player Daemon is running. - required: true - type: string -port: - description: Port of the Music Player Daemon. - required: false - type: integer - default: 6600 -name: - description: Name of your Music Player Daemon. - required: false - type: string - default: MPD -password: - description: Password for your Music Player Daemon. - required: false - type: string -{% endconfiguration %} +{% include integrations/config_flow.md %} Example script to load a saved playlist called "DeckMusic" and set the volume: