뮤직 플레이어 데몬(MPD)
mpd
플랫폼을 사용하면 Home Assistant에서 Music Player Daemon을 제어할 수 있습니다. 안타깝게도 재생 목록을 조작하거나 (노래 추가 또는 삭제) 노래간에 전환을 추가 할 수 없습니다.
재생 목록 조작이 불가능하더라도 play_media 서비스를 사용하여 기존 저장된 재생 목록을 자동화 또는 장면(scene)의 일부로 로드 할 수 있습니다.
설치에 MPD를 추가하려면 configuration.yaml
파일에 다음을 추가하십시오.
# Example configuration.yaml entry
media_player:
- platform: mpd
host: IP_ADDRESS
Configuration Variables
- host
(string)(Required)
IP address of the Host where Music Player Daemon is running.
- port
-
(integer)(Optional)
Port of the Music Player Daemon.
Default value:
6600
- name
-
(string)(Optional)
Name of your Music Player Daemon.
Default value:
MPD
- password
(string)(Optional)
Password for your Music Player Daemon.
“DeckMusic”이라는 저장된 재생 목록을 로드하고 볼륨을 설정하는 스크립트 예 :
relaxdeck:
sequence:
- service: media_player.play_media
data:
entity_id: media_player.main
media_content_type: playlist
media_content_id: DeckMusic
- service: media_player.volume_set
data:
entity_id: media_player.main
volume_level: 0.60
이 플랫폼은 Pi MusicBox에서 사용하는 Mopidy-MPD와 더불어 Music Player Daemon과 mopidy이 다같이 작동합니다