Add config flow to MPD (#32962)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Joost Lekkerkerker 2024-06-09 16:01:26 +02:00 committed by GitHub
parent 3bef43b3c3
commit 0b533d745c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,40 +14,11 @@ related:
title: Configuration file 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. 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/config_flow.md %}
{% 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 %}
Example script to load a saved playlist called "DeckMusic" and set the volume: Example script to load a saved playlist called "DeckMusic" and set the volume: