I have a couple mpd servers built on pi1’s one works great.
number 2 is being a bear to add to HA.
my error log looks like NFO:homeassistant.components.media_player:Updating media_player entities
DEBUG:mpd:Calling MPD status()
DEBUG:mpd:Calling MPD currentsong()
ERROR:homeassistant.core:BusHandler:Exception doing job
Traceback (most recent call last):
File "/usr/local/lib/python3.4/site-packages/homeassistant/core.py", line 821, in job_handler
func(arg)
File "/usr/local/lib/python3.4/site-packages/homeassistant/helpers/event.py", line 135, in pattern_time_change_listener
action(now)
File "/usr/local/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 125, in _update_entity_states
entity.update_ha_state(True)
File "/usr/local/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 102, in update_ha_state
attr = self.state_attributes or {}
File "/usr/local/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 561, in state_attributes
in ATTR_TO_PROPERTY if getattr(self, attr) is not None
File "/usr/local/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 561, in <dictcomp>
in ATTR_TO_PROPERTY if getattr(self, attr) is not None
File "/usr/local/lib/python3.4/site-packages/homeassistant/components/media_player/mpd.py", line 145, in media_title
title = self.currentsong['title']
KeyError: 'title'
DEBUG:requests.packages.urllib3.connectionpool:"POST /soap/server_sa/ HTTP/1.1" 200 1790
the config is
media_player 5:
platform: mpd
server: 192.168.50.179
port: 6600
location: Bedroom
my build notes of my steps are located at https://cy1701.wordpress.com/2016/01/02/bedroompi-mpd-notes/
i have rebuilt this one 3 or 4 times and it just won’t work with HA to test from outside I used droid mpd as a remote client.
any assistance is appreciated