Hey there!
I have a Yamaha receiver setup in HA which works pretty well, but when the receiver is off the log get filled with these messages:
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 387, in _update_entity_states
yield from update_coro
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
yield from self.hass.loop.run_in_executor(None, self.update)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/yamaha.py", line 115, in update
self._play_status = self._receiver.play_status()
File "/home/homeassistant/.homeassistant/deps/rxv/rxv.py", line 326, in play_status
src_name = self._src_name(self.input)
File "/home/homeassistant/.homeassistant/deps/rxv/rxv.py", line 231, in input
response = self._request('GET', request_text)
File "/home/homeassistant/.homeassistant/deps/rxv/rxv.py", line 129, in _request
headers={"Content-Type": "text/xml"}
File "/srv/homeassistant/lib/python3.4/site-packages/requests/sessions.py", line 535, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/requests/adapters.py", line 487, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.5.9', port=80): Max retries exceeded with url: /YamahaRemoteControl/ctrl (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x6ab81fb0>: Failed to establish a new connection: [Errno 113] No route to host',))
I don’t want to turn off logging, is there another way to solve this problem?
Thanks!