rxv
rxv copied to clipboard
RX-V679, output throws exception
rx.outputs
ERROR:rxv:Request <YAMAHA_AV cmd="GET"><System><Sound_Video><HDMI><Output><OUT_2>GetParam</OUT_2></Output></HDMI></Sound_Video></System></YAMAHA_AV> failed with b'<YAMAHA_AV rsp="GET" RC="2"><System><Sound_Video><HDMI><Output><OUT_2></OUT_2></Output></HDMI></Sound_Video></System></YAMAHA_AV>'
---------------------------------------------------------------------------
ResponseException Traceback (most recent call last)
<ipython-input-10-72fc33e816c2> in <module>()
----> 1 rx.outputs
~/.local/lib/python3.6/site-packages/rxv/rxv.py in outputs(self)
271 port_number = m.group(1)
272 request = HdmiOut.format(port=port_number, command='GetParam')
--> 273 response = self._request('GET', request, zone_cmd=False)
274 port_state = response.find(cmd.replace(',', '/')).text.lower()
275 outputs['hdmi' + str(port_number)] = port_state
~/.local/lib/python3.6/site-packages/rxv/rxv.py in _request(self, command, request_text, zone_cmd)
141 logger.error("Request %s failed with %s",
142 request_text, res.content)
--> 143 raise ResponseException(res.content)
144 return response
145 except ET.ParseError:
ResponseException: b'<YAMAHA_AV rsp="GET" RC="2"><System><Sound_Video><HDMI><Output><OUT_2></OUT_2></Output></HDMI></Sound_Video></System></YAMAHA_AV>'