NorthernMan54 / homebridge-yamaha-home

Homebridge plugin for my Yamaha Receiver optimized for use with the Home App and Alexa
26 stars 9 forks source link

Cant set main input to net radio? #28

Closed Trippersgarage closed 5 years ago

Trippersgarage commented 5 years ago

First up, this is a great plug in! Slowly making my home automation come together. :)

The issue I'm having is as mentioned; is it possible to set the input at start up to net radio? The receiver starts up but not on net radio as I have it configured;

{ "platform": "yamaha-home", "play_volume": -30, "max_volume": -20, "setMainInputTo": "Net Radio", "show_input_name": "yes", "manual_addresses": { "Yamaha": "xxx.xxx.x.xx" }

I've tried "netradio" , "net_radio" and as above. No luck.

Trippersgarage commented 5 years ago

And something else weird I noticed in the log as posted below;

[3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered YamahaReceiver [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ 'fe80::xxx:xxx:xxxx:xxxx', '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Found Yamaha RX-V477 - 0E7291E3, "Yamaha" [3/22/2019, 8:08:58 PM] [yamaha-home] WARN: Got multiple systems with ID 0E7291E3! Omitting duplicate! [3/22/2019, 8:08:58 PM] [yamaha-home] DEBUG: Failed getSystemConfig from xxx, probably just not a Yamaha AVR. [3/22/2019, 8:08:58 PM] [yamaha-home] DEBUG: Failed getSystemConfig from xxx, probably just not a Yamaha AVR. [3/22/2019, 8:08:58 PM] [yamaha-home] DEBUG: Failed getSystemConfig from xxx, probably just not a Yamaha AVR. [3/22/2019, 8:08:58 PM] [yamaha-home] DEBUG: Failed getSystemConfig from xxx, probably just not a Yamaha AVR. [3/22/2019, 8:08:58 PM] [yamaha-home] DEBUG: Failed getSystemConfig from xxx, probably just not a Yamaha AVR. [3/22/2019, 8:08:58 PM] [yamaha-home] DEBUG: Failed getSystemConfig from xxx, probably just not a Yamaha AVR. [3/22/2019, 8:08:58 PM] [yamaha-home] Adding zone controller for Yamaha [3/22/2019, 8:09:02 PM] [Config] Using Form Authentication [3/22/2019, 8:09:02 PM] [Config] Console v3.9.7 is listening on port 8080. 502 - "<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>cloudflare</center>\r\n</body>\r\n</html>\r\n" [3/22/2019, 8:09:13 PM] [yamaha-home] Waited 10 seconds, stopping discovery. [3/22/2019, 8:09:13 PM] [yamaha-home] Discovery finished, found 1 Yamaha AVR devices. [3/22/2019, 8:09:13 PM] [yamaha-home] Initializing platform accessory 'Yamaha'...

The plugin seems to query all my devices despite me already giving it the IP address.. A friendly plugin aint it? :)))

And it apparently found multiple systems? Strange....

NorthernMan54 commented 5 years ago

Just looking at the DEBUG=* log from mine during startup and I saw

NET_RADIO

Have you tried that?

In regards to the receiver discovery logic ( Please keep in mind this is someone else's original effort, and I had just added the zone support and “Lightbulb’s” as volume controls. )

Looking at how the code is written, it does a receiver discovery that is very chatty and at the same time uses a supplied IP to configure receivers. I can only hypothesis what the original author had in mind, but I think he had in mind a dual configuration approach, auto discovery and supplied IP, rather than a exclusive approach.

On Mar 22, 2019, at 8:17 AM, Trippersgarage notifications@github.com wrote:

And something else weird I noticed in the log as posted below;

[3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered YamahaReceiver [ '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Possible Yamaha device discovered xxx [ 'fe80::xxx:xxx:xxxx:xxxx', '192.xxx.x.xxx' ] [3/22/2019, 8:08:58 PM] [yamaha-home] Found Yamaha RX-V477 - 0E7291E3, "Yamaha" [3/22/2019, 8:08:58 PM] [yamaha-home] WARN: Got multiple systems with ID 0E7291E3! Omitting duplicate! [3/22/2019, 8:08:58 PM] [yamaha-home] DEBUG: Failed getSystemConfig from xxx, probably just not a Yamaha AVR. [3/22/2019, 8:08:58 PM] [yamaha-home] DEBUG: Failed getSystemConfig from xxx, probably just not a Yamaha AVR. [3/22/2019, 8:08:58 PM] [yamaha-home] DEBUG: Failed getSystemConfig from xxx, probably just not a Yamaha AVR. [3/22/2019, 8:08:58 PM] [yamaha-home] DEBUG: Failed getSystemConfig from xxx, probably just not a Yamaha AVR. [3/22/2019, 8:08:58 PM] [yamaha-home] DEBUG: Failed getSystemConfig from xxx, probably just not a Yamaha AVR. [3/22/2019, 8:08:58 PM] [yamaha-home] DEBUG: Failed getSystemConfig from xxx, probably just not a Yamaha AVR. [3/22/2019, 8:08:58 PM] [yamaha-home] Adding zone controller for Yamaha [3/22/2019, 8:09:02 PM] [Config] Using Form Authentication [3/22/2019, 8:09:02 PM] [Config] Console v3.9.7 is listening on port 8080. 502 - "\r\n502 Bad Gateway\r\n<body bgcolor=\"white\">\r\n

502 Bad Gateway

\r\n
cloudflare
\r\n\r\n\r\n" [3/22/2019, 8:09:13 PM] [yamaha-home] Waited 10 seconds, stopping discovery. [3/22/2019, 8:09:13 PM] [yamaha-home] Discovery finished, found 1 Yamaha AVR devices. [3/22/2019, 8:09:13 PM] [yamaha-home] Initializing platform accessory 'Yamaha'...

The plugin seems to query all my devices despite my already giving it the IP address.. A friendly plugin aint it? :)))

And it apparently found multiple systems? Strange....

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NorthernMan54/homebridge-yamaha-home/issues/28#issuecomment-475599406, or mute the thread https://github.com/notifications/unsubscribe-auth/AS5CmCCrlp3KPIrIMVYvSUCi6AhDCaRfks5vZMnUgaJpZM4cDT7u.

Trippersgarage commented 5 years ago

Thank you for the reply and all your hard work with picking this plugin up and keeping it going. It is extremely appreciated. :)

Nope, NET_RADIO didn't work. After some poking around I suspect it may just be due to the fact that I'm using an older receiver RXV477 which, as I understand it, has a different local web server implementation.

Yamaha

Having Siri just turn the thing on is already fantastic enough for now. The wife loves it!

Thanks again!!!!

NorthernMan54 commented 5 years ago

What the plugin does is scrape the website, so if the website has the ability to select the NET_RADIO input then it should be feasible. If you use developer mode on the website, you may be able to see the actual command and proper value.

On Mar 23, 2019, at 8:50 AM, Trippersgarage notifications@github.com wrote:

Thank you for the reply and all your hard work with picking this plugin up and keeping it going. It is extremely appreciated. :)

Nope, NET_RADIO didn't work. After some poking around I suspect it may just be due to the fact that I'm using an older receiver RXV477 which, as I understand it, has a different local web server implementation.

Having Siri just turn the thing on is already fantastic enough for now. The wife loves it!

Thanks again!!!!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.