Page 4 of 15
Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Mon Oct 28, 2013 5:50 pm
by v!rus
Now it works perfectly. Thank you very much, Dragon!

Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Mon Nov 04, 2013 6:52 pm
by Spragleknas
Hi.
Big thanks for this plugin!
The plugin itself seems to work just fine, but I was wondering if anyone have any advice as to how I can map System.Volume events to the Increase Volume action.
Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Mon Nov 04, 2013 6:53 pm
by Spragleknas
EDIT: Duplicate. Sorry!
Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Tue Nov 05, 2013 2:00 pm
by Dragon470
I am unclear what you are really wanting. Are you wanting when you hit the volume up button on a keyboard, only increase the amp volume? This is not really that hard, you will need the hid plugin for your keyboard. I use this setup, as I don't want the volume coming out of my pc to change, only the amp changes. Otherwise using the event System.Volume '75.00' and you use that to match the precent on the amp, you will be crating an exponential increase or decreasing effect. This also would requie a python script to use the exact volume.
With the keyboard button the events go just before the increase or decrease volume actions.
Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Thu Feb 06, 2014 1:30 am
by barnabas1969
I don't know if anyone cares, but I updated this plugin for my own use a couple of years ago, but I never uploaded it here. I can't remember what all I changed except for one action that I use a lot, which is named "Get Input". It retrieves the currently-selected input from the receiver, and returns it in eg.result. So, if "AV3" is the current input, that's what you'll get in eg.result. You can then use this variable in your own script or subsequent actions.
For example, I want to turn off my TV when the computer goes to sleep... but only if the currently-selected input is the one that the computer is connected to. This prevents turning off the A/V receiver when the computer sleeps, if the AVR is being used for something else at the time (like Internet radio, Pandora, FM radio, etc).
I realize that the "Get Basic Status" action can be used for this purpose (if you know how to parse XML), but mine is simpler to use.
EDIT: Wow, I looked at the first post again, and the guy who wrote it originally has made A LOT OF CHANGES since I first downloaded it. I'll have to look at his plugin now, and see if it does everything I want. All I can say is that the one I posted here contains the ability for the plugin to return values back to eg.result. But, I'll say that his new plugin is MUCH more refined that it was originally.
EDIT2: Amazing. His new functions FAR exceed what I added. Forget mine. In fact, I've removed my file.
Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Fri May 16, 2014 12:33 pm
by loft
birdapi, where did you find the documentation with the commands? A friend of mine tries to control his receiver from Android (SL4A script ran by Tasker) but we cannot find a document with the network commands.
Any help would be greatly appreciated!

Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Fri May 16, 2014 2:02 pm
by Dragon470
I got the information from a UK/Ireland spec sheet.
The YNC.zip file from my earlier post has the documents along with how to setup the xml string to be sent to the receiver.
Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Thu Jul 10, 2014 6:49 pm
by FilmNerden
This plugin is just what I was looking for, but unfortunely it doesn┬┤t work for me. I have a RX-V 2010 and even if I put in the IP manually it doesn┬┤t recognize it. What am I missing here?
Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Fri Jul 11, 2014 6:41 pm
by barnabas1969
Are you trying to communicate with the AVR while it is powered off? If so, you need to set the option in the AVR's menu to keep the Ethernet port turned on even when the AVR is off. I can't remember the name of the option. It's one of the power saving options.
Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Sat Jul 12, 2014 1:14 am
by Dragon470
The setting barnabas1969 is talking about is "Network Standby". Needs to be "ON" for communications to function while the receiver is off.
However, a few other things to look at are:
Is the receiver on the same network/subnet as the computer?
Can you even communicate to the receiver via web interface?
http://ip address of receiver
Did you ever setup MAC filters on the receiver? If so then you need to add the computers mac address to the list.
Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Sun Aug 24, 2014 8:28 am
by woggy
Hi, thanks for a great plugin. It works great except a few minor issues:
1. in class SmartVolumeUp (and down) the FloatSpin panel for "Increase Amount (Step 2): " dont' show up in the config window.
2. On my R-N500 i have most inputs missing, is it possible to add them?:
OPTICAL1, OPTICAL2, COAXIAL1, COAXIAL2, CD, LINE1, LINE2, LINE3
3. Is it possible to add support for SPEAKERS A and B?
4. And probably the hardest one, is it possible to get events in the log when you change for example inputs or volume from the remote?
Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Sun Aug 24, 2014 11:34 am
by Dragon470
Woggy, for your answers:
1. I did not do the SmartVolume, and don't use it, so I would have to either look it up or get birdapi to do it.
2. Definitely doable. I will add them to a new version of the plugin and have to have you test.
3. I would have to see how it is that separate speakers are selected (if it is possible). I will try to work up a script that you can use and send me the results.
4. This is only doable if you poll the receiver on a regular interval. This is not done by the plugin. All of the Get Info actions should be able to get what want, but does not produce events like you want.
I will update this post for the modified plugin and test script when I have the time.
Update: This is a script to use (need to change the ip address to your device):
Code: Select all
ip = "192.168.1.2"
port = 80
timeout=3.0
import socket
from xml.dom import minidom
import httplib
conn = httplib.HTTPConnection('{0}:{1}'.format(ip, port), timeout=float(timeout))
headers = { "Content-type": "text/xml" }
conn.request("POST", "/YamahaRemoteControl/ctrl", "", headers)
conn.send('<YAMAHA_AV cmd="GET"><System><Config>GetParam</Config></System></YAMAHA_AV>')
response = conn.getresponse()
rval = response.read()
conn.close()
print rval
print ""
chunks, chunk_size = int(len(rval)), 50
for i in range(0, chunks, chunk_size):
print rval[i:i+chunk_size]
copy and paste the results. This will tell me the inputs you have and maybe the "zone" names for speakers.
Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Sun Aug 24, 2014 12:26 pm
by woggy
tnx for a fast response...
<YAMAHA_AV rsp="GET" RC="0"><System><Config><Model_Name>R-N500</Model_Name><System_ID>0EB18623</System_ID><Version>1.07/2.06</Version><Feature_Existence><Main_Zone>1</Main_Zone><Zone_2>0</Zone_2><Zone_3>0</Zone_3><Zone_4>0</Zone_4><Tuner>1</Tuner><DAB>0</DAB><HD_Radio>0</HD_Radio><Rhapsody>0</Rhapsody><Napster>0</Napster><SiriusXM>0</SiriusXM><Spotify>1</Spotify><Pandora>0</Pandora><SERVER>1</SERVER><NET_RADIO>1</NET_RADIO><USB>1</USB><iPod_USB>1</iPod_USB><AirPlay>1</AirPlay></Feature_Existence></Config></System></YAMAHA_AV>
Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Sun Aug 24, 2014 1:01 pm
by Dragon470
the paste didn't get all of it. right click and copy from the log window.
Also can you select speakers A or B from the receivers webpage?
Re: Yamaha RX-Vxxx (or similar) Ethernet Plugin!
Posted: Sun Aug 24, 2014 1:33 pm
by woggy
this is all I get:
<YAMAHA_AV rsp="GET" RC="0"><System><Config><Model_Name>R-N500</Model_Name><System_ID>0EB18623</System_ID><Version>1.07/2.06</Version><Feature_Existence><Main_Zone>1</Main_Zone><Zone_2>0</Zone_2><Zone_3>0</Zone_3><Zone_4>0</Zone_4><Tuner>1</Tuner><DAB>0</DAB><HD_Radio>0</HD_Radio><Rhapsody>0</Rhapsody><Napster>0</Napster><SiriusXM>0</SiriusXM><Spotify>1</Spotify><Pandora>0</Pandora><SERVER>1</SERVER><NET_RADIO>1</NET_RADIO><USB>1</USB><iPod_USB>1</iPod_USB><AirPlay>1</AirPlay></Feature_Existence></Config></System></YAMAHA_AV>
I added and tested all the inputs in global.py
I redesigned the config window on smart volume in client.py
I can only do some boring config on the web interface, not even volume.