Marantz (via denon component) - Connection Refused

Could anyone please tell me why I’m getting connection refused message?

16-06-10 13:59:54 homeassistant.core: BusHandler:Exception doing job Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 809, in job_handler func(arg) File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 663, in _execute_service service(call) File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 522, in __call__ self.func(call) File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/__init__.py", line 319, in volume_set_service player.update_ha_state(True) File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity.py", line 145, in update_ha_state self.update() File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/denon.py", line 76, in update self._pwstate = self.telnet_request(telnet, "PW?") File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/denon.py", line 60, in telnet_request return telnet.read_until(b"\r", timeout=0.2).decode("ASCII").strip() File "/usr/lib/python3.5/telnetlib.py", line 315, in read_until self.fill_rawq() File "/usr/lib/python3.5/telnetlib.py", line 524, in fill_rawq buf = self.sock.recv(50) ConnectionResetError: [Errno 104] Connection reset by peer 16-06-10 14:00:04 homeassistant.core: BusHandler:Exception doing job Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 809, in job_handler func(arg) File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 663, in _execute_service service(call) File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 522, in __call__ self.func(call) File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/__init__.py", line 316, in volume_set_service player.set_volume_level(volume) File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/denon.py", line 138, in set_volume_level self.telnet_command("MV" + str(round(volume * 60)).zfill(2)) File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/denon.py", line 64, in telnet_command telnet = telnetlib.Telnet(self._host) File "/usr/lib/python3.5/telnetlib.py", line 218, in __init__ self.open(host, port, timeout) File "/usr/lib/python3.5/telnetlib.py", line 234, in open self.sock = socket.create_connection((host, port), timeout) File "/usr/lib/python3.5/socket.py", line 711, in create_connection raise err File "/usr/lib/python3.5/socket.py", line 702, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused

I’m using a Marantz SR5008 receiver. Marantz is a subsidy of Denon, so IP Control in Denon receivers works in Marantz.

I seem to have no problems in 0.20 before an update to 0.21. (Sigh) That’s something I should not have upgraded…

And here’s another one:

16-06-10 14:05:42 homeassistant.core: BusHandler:Exception doing job Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 809, in job_handler func(arg) File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/event.py", line 179, in pattern_time_change_listener action(now) File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity_component.py", line 191, in _update_entity_states entity.update_ha_state(True) File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity.py", line 145, in update_ha_state self.update() File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/denon.py", line 81, in update self._volume = int(volume_str) / 60 ValueError: invalid literal for int() with base 10: ''

After I’ve been thinking about it, I think that might have something to do with my receiver reporting MVMAX. In my case, when telneting to my receiver, it alternates between “MVMAX 800” and “MXMAX 805” when I adjust the volume.

Does the DENON receiver do this as well?

More info after playing with my receiver for few minutes:

Setting Volume Limit to off alternates between “MVMAX 960” and “MVMAX 965” when adjusting the volume. That is, no matter the volume level.

Setting Volume Limit to -20dB alternates between “MVMAX 600” and “MVMAX 605.”

I think this may have something to do with my receiver rather than Home Assistant, but still I don’t think I’ve had a problem like this in 0.20… (confused)