Update for media_player.pioneer fails

Hi,

I’m using the @pernordlund pioneer component. I made some minor changes to make it work with my VSX-S510 and everything works quite well. However I have an “EOFError: telnet connection closed error” every few days.

Log Details (ERROR)
Sat Apr 21 2018 07:54:08 GMT+0200 (Paris, Madrid (heure d’été))
 
Update for media_player.pioneer fails
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
    yield from self.async_device_update()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 327, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/.homeassistant/custom_components/media_player/pioneer_vsx528.py", line 114, in update
    pwstate = self.telnet_request(telnet, "?P", "PWR")
  File "/home/homeassistant/.homeassistant/custom_components/media_player/pioneer_vsx528.py", line 79, in telnet_request
    result = telnet.read_until(b"\r\n", timeout=0.2).decode("ASCII") \
  File "/usr/lib/python3.5/telnetlib.py", line 327, in read_until
    return self.read_very_lazy()
  File "/usr/lib/python3.5/telnetlib.py", line 403, in read_very_lazy
    raise EOFError('telnet connection closed')
EOFError: telnet connection closed

It looks like the port is tied up but I can’t find a way to solve the problem. Do someone know something about this issue ?

Hi. My update fails every minute. So I would also be happy if someone solved the closing connection problem

The connection is much more stable now. I limited the request number if Pioneer is OFF.
https://github.com/2t0m/hass/commit/a6c52df4060b2f458840e44dee33c2f41fb5e4ed

1 Like