mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
Add config flow to MPD (#32962)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
3bef43b3c3
commit
0b533d745c
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user