Yamaha RX Plugin - a/v receiver control

Posted on
Wed Aug 09, 2023 1:52 pm
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Yamaha RX Plugin - a/v receiver control

Hi @screen,
screen wrote:
autolog wrote:
screen wrote:
Code: Select all
 . . .
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/xml/etree/ElementTree.py", line 1718, in feed
type: multi-byte encodings are not supported
Apologies for the delayed response.

I am struggling to resolve this issue as I can't replicate it. Unfortunately my speakers aren't much of a help as they are musiccast based. :?

The error seems to be occurring on listing your receiver.

What is the name of your receiver and what type?


No worry. Thanks for the reply! I was able to fix these issues and sent a pull request on GitHub if you’d like to integrate into your changes. My receiver is the Yamaha Rx-A1080 but the real cause I found when debugging is other devices on the network that are also broadcasting and passing xml possibly without a utf-8 encoding or without one specified. My PR is here in case it helps to locate it. I also fixed a few other issues that I ran into.

https://github.com/autolog/indigo-yamaharx/pull/1


Would it be possible for youto download and test out the merged release to make sure that I have merged your changes correctly?
The link is here: Python 3 update for Indigo 2022.1+

Thanks for your help. :)

Posted on
Thu Aug 10, 2023 8:25 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Yamaha RX Plugin - a/v receiver control

Different Computers wrote:
Just tried this here in the US, and unsurprisingly, it does not communicate with my amp, an RX-A1010.

Has this ever worked? Trying to determine if it is a Python 2 > Python 3 conversion issue.

Posted on
Fri Aug 11, 2023 7:08 am
Different Computers offline
User avatar
Posts: 2556
Joined: Jan 02, 2016
Location: East Coast

Re: Yamaha RX Plugin - a/v receiver control

Not entirely sure what you mean by “ever.”

Does the Python 2 version I’ve had for years work? Yes.

Have I ever gotten the P3 version to work? No.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Fri Aug 11, 2023 10:38 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Yamaha RX Plugin - a/v receiver control

Hi @Different Computers,
Different Computers wrote:
Not entirely sure what you mean by “ever.”

Does the Python 2 version I’ve had for years work? Yes.

Have I ever gotten the P3 version to work? No.

Thanks for the answer; which is what I wanted to know. :)

Your previous statement:
Just tried this here in the US, and unsurprisingly, it does not communicate with my amp, an RX-A1010.
This gives the impression (to me at least) that you didn't expect it to work in the US. I can't see how converting the plugin from Python 2 to Python 3 would cause that type of issue. Hence me questioning if it had ever worked.

What made you think that being in the US would cause it not to work or were you just letting me know where you were trying it out?

Posted on
Fri Aug 11, 2023 2:12 pm
Different Computers offline
User avatar
Posts: 2556
Joined: Jan 02, 2016
Location: East Coast

Re: Yamaha RX Plugin - a/v receiver control

autolog wrote:
What made you think that being in the US would cause it not to work or were you just letting me know where you were trying it out?


I assumed it was for Australian versions of Yamaha amps, since it's labeled AUS.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Fri Aug 11, 2023 2:19 pm
Different Computers offline
User avatar
Posts: 2556
Joined: Jan 02, 2016
Location: East Coast

Re: Yamaha RX Plugin - a/v receiver control

Doing more investigation and this seems odd:

Undefined?

Also I notice that my amp is not an RX-A1010, which is the only model in the drop down. Mine is a TSR-7850, but it works with the previous plugin.
Attachments
baramp.png
baramp.png (27.85 KiB) Viewed 14477 times

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Sat Aug 12, 2023 7:47 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Yamaha RX Plugin - a/v receiver control

Can we check we are talking about the same version of the plugin?

There is an Australian version by @Bleasel.

The one I have updated is the original Python 2 plugin and this is the one that will be updated into the Indigo plugin store when confirmed OK, or at least at the state it was under Python 2.

It can be downloaded from here: Python 3 update for Indigo 2022.1+

Posted on
Sat Aug 12, 2023 3:24 pm
Different Computers offline
User avatar
Posts: 2556
Joined: Jan 02, 2016
Location: East Coast

Re: Yamaha RX Plugin - a/v receiver control

Apparently not the same version! Sorry for the confusion.

The one you linked seems to work fine!

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Sun Aug 13, 2023 4:05 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Yamaha RX Plugin - a/v receiver control

Different Computers wrote:
Apparently not the same version! Sorry for the confusion.

The one you linked seems to work fine!

That's good; pleased it is now working for you. :)

Who is online

Users browsing this forum: No registered users and 2 guests