nugget / python-anthemav

Python asyncio module to interface with Anthem AVM and MRX receivers
MIT License
15 stars 23 forks source link

Anthem MRX-x10 (710) stopped working #39

Open wvh-github opened 1 year ago

wvh-github commented 1 year ago

When using the integration in home assistant I'm unable to use the controls.

The inputs are being populated, but I'm unable to set it.

From the home assistant logs: Logger: anthemav.protocol Source: runner.py:119 First occurred: 8:46:33 AM (5 occurrences) Last logged: 11:55:03 AM

Invalid command: ICN? Invalid command: Z1INP? Invalid command: Z1INP2

and:

2022-11-04 08:46:33.901 WARNING (MainThread) [anthemav.protocol] Invalid command: ICN? 2022-11-04 11:53:41.962 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP? 2022-11-04 11:53:42.032 WARNING (MainThread) [anthemav.protocol] Invalid command: ICN? 2022-11-04 11:53:54.352 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP2 2022-11-04 11:55:03.733 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP2

I have a really ugly hacked version of the protocol.py that seems to run without errors when using the "anthemav_monitor". I don't think it is PR worthy.

https://github.com/wvh-github/python-anthemav/commit/e62c933c13518816638533fba5b4fa25bb697593

Hyralex commented 1 year ago

As per the document for MRX *10, Z1INP2 is a valid command to select input 2, so not sure why it is returned as invalid. Is input 2 valid on your amplifier? Is your code fixing your problem?

Hyralex commented 1 year ago

this is the document I'm referring to: https://view.officeapps.live.com/op/view.aspx?src=https%3A%2F%2Fwww.anthemav.com%2Fdownloads%2FMRX%2520x10%2520IP%2520RS-232.xls&wdOrigin=BROWSELINK

wvh-github commented 1 year ago

It looks like the correct document, but I did have the same problem with my previous mrx 510 as well.

I'm not sure I it fixes the problem, its been a while since I tried using it.

This is my hacky code output:

❯ anthemav_monitor --host 192.168.10.21 [08:40:16] INFO:anthemav.tools:Connecting to Anthem AVR at 192.168.10.21:14999 INFO:anthemav.tools:Power state is False INFO:anthemav.tools:Callback invoked: Z1POW1 WARNING:anthemav.protocol:Out-of-range command: Z1PVOL? INFO:anthemav.tools:Callback invoked: IDMMRX 710 INFO:anthemav.tools:Callback invoked: Z1VOL-42 INFO:anthemav.tools:Callback invoked: Z1INP1 INFO:anthemav.tools:Callback invoked: Z1MUT0 INFO:anthemav.tools:Callback invoked: IDN7CB77B013770 INFO:anthemav.tools:Callback invoked: Z2POW0 INFO:anthemav.tools:Callback invoked: IDS1.2.9 INFO:anthemav.tools:Callback invoked: IDBApr 28 2015 INFO:anthemav.tools:Callback invoked: IDH1 INFO:anthemav.tools:Callback invoked: ICN5 INFO:anthemav.tools:Callback invoked: ISN01SHIELD INFO:anthemav.tools:Callback invoked: ISN02Pure 1 INFO:anthemav.tools:Callback invoked: ISN03Music INFO:anthemav.tools:Callback invoked: ISN04Shield M INFO:anthemav.tools:Callback invoked: ISN05Shield P INFO:anthemav.tools:Callback invoked: Z1VIR2 INFO:anthemav.tools:Callback invoked: Z1IRH1920 INFO:anthemav.tools:Callback invoked: Z1IRV1080 INFO:anthemav.tools:Callback invoked: Z1AIC0 INFO:anthemav.tools:Callback invoked: Z1AIF0 INFO:anthemav.tools:Callback invoked: Z1BRT1536 INFO:anthemav.tools:Callback invoked: Z1SRT0 INFO:anthemav.tools:Callback invoked: Z1AIN?No Input INFO:anthemav.tools:Callback invoked: Z1AIR0kHz INFO:anthemav.tools:Callback invoked: Z1ALM00 INFO:anthemav.tools:Callback invoked: Z1DYN0 INFO:anthemav.tools:Callback invoked: Z1DIA0 INFO:anthemav.tools:Callback invoked: MAC7CB77B013770 INFO:anthemav.tools:Power state is True INFO:anthemav.tools:Model is MRX 710 INFO:anthemav.tools:Number of zone is 2 x10 INFO:anthemav.tools:Volume is -42

This is what my current home-assistant setup shows:

Logger: anthemav.protocol Source: runner.py:179 First occurred: 10:33:54 AM (2 occurrences) Last logged: 10:33:54 AM

Out-of-range command: Z1PVOL? Lost connection to receiver

Christophe-01 commented 10 months ago

Hi,

I have a MRX310 and an AVM60. I can pilot both with my RTI devices (it is 2 differents driver) But Home Assistant use only your driver and my MRX310 does not works correcly:

Have you got an idea ?

Thanks

wvh-github commented 2 months ago

@Hyralex

I trying to get my mrx-710 working again, but everything is still the same. I still get this error:

2024-04-30 10:22:07.955 WARNING (MainThread) [anthemav.protocol] Out-of-range command: Z1PVOL? 2024-04-30 10:22:07.962 WARNING (MainThread) [anthemav.protocol] Lost connection to receiver 2024-04-30 10:22:39.110 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP? 2024-04-30 10:22:39.154 WARNING (MainThread) [anthemav.protocol] Invalid command: ICN? 2024-04-30 10:23:43.349 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP2 2024-04-30 10:24:01.877 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP3 2024-04-30 10:24:04.677 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP2 2024-04-30 10:24:15.236 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP? 2024-04-30 10:24:15.293 WARNING (MainThread) [anthemav.protocol] Invalid command: ICN? 2024-04-30 10:24:17.470 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP2 2024-04-30 10:24:27.968 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP2 2024-04-30 10:24:36.321 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP2 2024-04-30 10:24:38.367 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP3 2024-04-30 10:24:42.047 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP2 2024-04-30 10:24:47.127 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP2 2024-04-30 10:24:51.548 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP3 2024-04-30 10:25:02.085 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP? 2024-04-30 10:25:02.131 WARNING (MainThread) [anthemav.protocol] Invalid command: ICN? 2024-04-30 10:25:08.067 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP2 2024-04-30 10:25:12.917 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP2 2024-04-30 10:25:17.148 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP3 2024-04-30 10:25:21.283 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP2 2024-04-30 10:25:23.280 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP3 2024-04-30 10:25:25.470 WARNING (MainThread) [anthemav.protocol] Invalid command: Z1INP2

What can I provide to help troubleshoot this?