Author Topic: Yamaha Receiver (RX-Axxxx) Control Plugin  (Read 2708 times)

jcamm3

  • Newbie
  • *
  • Posts: 1
Yamaha Receiver (RX-Axxxx) Control Plugin
« on: December 18, 2011, 12:38:21 pm »
Anyone have any experiences with developing receiver control plugins?  Would be appreciative for any pointers or assistances with the development of a plugin for the Yamaha RX-Axxxx series receivers.

guessed

  • Master Member
  • *******
  • Posts: 3948
  • Vera 3, UI-Broken#5
Re: Yamaha Receiver (RX-Axxxx) Control Plugin
« Reply #1 on: December 18, 2011, 01:06:43 pm »
There are Denon and Onkyo receiver plugins over on Code.mios.com that can readily be transformed into another if you have the relevant API documentation.

Typically they're not hard to write.

RichardTSchaefer

  • Hero Member
  • *****
  • Posts: 1525
    • RTS Services Plugins
Re: Yamaha Receiver (RX-Axxxx) Control Plugin
« Reply #2 on: January 03, 2012, 07:35:26 am »
Two Approaches can be done ... RS232 or Ethernet.
You will need the the Specs and Function tree for your receiver.
I am sure the most common features are the same between the various models.
I have the RX-Z11.
I found the info for my receiver on the net ... can't remember where ... but the file was called: "RS232 Z11 codes.zip"
For the internet it uses UPnP protocol for device detection.
HTTP Post Protocol for Commands with an XML content to define the command.
The structure of the XML follows the Function Tree defined for the receiver.
i.e.: To get the current sleep time:
Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<YAMAHA_AV cmd="GET">
  <Main_Zone>
    <Power_Control>
      <Sleep>GetParam</Sleep>
    </Power_Control>
  </Main_Zone>
</YAMAHA_AV>

CMRancho

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1000
Re: Yamaha Receiver (RX-Axxxx) Control Plugin
« Reply #3 on: March 15, 2012, 12:37:20 pm »
Did you get this working? I have a Yamaha RX- that I'd love to control via RS232 but I haven't a clue how to go about it. I know guessed says it's easy, but I can only dream of having his skills. I feel really good about finally getting the IR control of it figured out!
Vera123beta; Schlage, Kwikset, TZEMT400; Linksys cams, Smarteye cams, HSM100; Aeon, Everspring, Cooper, Leviton, Intermatic, FortrezZ, Global Caché, USB-UIRT, Somfy, etc.

RichardTSchaefer

  • Hero Member
  • *****
  • Posts: 1525
    • RTS Services Plugins
Re: Yamaha Receiver (RX-Axxxx) Control Plugin
« Reply #4 on: March 20, 2012, 06:47:49 pm »
Since I have other devices to control ... that do not have serial or ethernet interfaces I figured I would go with the least common denominator ... and that is IR links.


 

guessed

  • Master Member
  • *******
  • Posts: 3948
  • Vera 3, UI-Broken#5
Re: Yamaha Receiver (RX-Axxxx) Control Plugin
« Reply #5 on: March 20, 2012, 08:14:16 pm »
@CMRancho,
I reckon you can do it.  I've listed the key data below, from that and the code of the Onkyo:
    http://code.mios.com/trac/mios_onkyo-media-control/browser/trunk

you should be able to get up and running with basic On/Off functionality, and a bunch more if you want to venture further.


Start with this post on RemoteCentral:
    http://www.remotecentral.com/cgi-bin/forums/viewpost.cgi?372960

you'll get most of the key commands that need to be sent.  If you want to take the existing plugin, and open it in a text editor, then you can either do this with a [Vera] <protocol> element of "raw" and then send the commands like:

For a line in their Forum page like:
Quote
    serialstring "Power ON" "\x0207A1D\x03"

it becomes the following, inside the corresponding <action> block's <run> element in Vera:

Code: [Select]
      <name>On</name>
      <run>
        -- Power On
        luup.io.write("\00207A1D\003")
      </run>

...effectively replacing each call to "sendCommand(...)" that's there now.

or you can change the protocol element from raw to stxetx (same as what the Panasonic TV uses) and then use simplified calls like:

Code: [Select]
      <name>On</name>
      <run>
        -- Power On
        luup.io.write("07A1D")
      </run>



If you run into trouble, attach the conversion you've done "so far" and I'm sure folks can help out.

CMRancho

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1000
Re: Yamaha Receiver (RX-Axxxx) Control Plugin
« Reply #6 on: March 21, 2012, 06:08:45 am »
Thanks! Now I know how I'll be spending my evenings this week  :)
Vera123beta; Schlage, Kwikset, TZEMT400; Linksys cams, Smarteye cams, HSM100; Aeon, Everspring, Cooper, Leviton, Intermatic, FortrezZ, Global Caché, USB-UIRT, Somfy, etc.

guessed

  • Master Member
  • *******
  • Posts: 3948
  • Vera 3, UI-Broken#5
Re: Yamaha Receiver (RX-Axxxx) Control Plugin
« Reply #7 on: March 31, 2012, 11:06:11 am »
@CMRancho,
How did you go piecing it together?   Yell out if you need any extra help getting it working.

CMRancho

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1000
Re: Yamaha Receiver (RX-Axxxx) Control Plugin
« Reply #8 on: April 02, 2012, 05:03:00 am »
@CMRancho,
How did you go piecing it together?   Yell out if you need any extra help getting it working.
This got pushed to priority level 2. I got a Somfy SRTSI so I've been busy building and installing motorized shades like a madman. My plan is to get back to the A/V conversion in a week or so. Thanks!
Vera123beta; Schlage, Kwikset, TZEMT400; Linksys cams, Smarteye cams, HSM100; Aeon, Everspring, Cooper, Leviton, Intermatic, FortrezZ, Global Caché, USB-UIRT, Somfy, etc.

baxy_AU

  • Full Member
  • ***
  • Posts: 177
Re: Yamaha Receiver (RX-Axxxx) Control Plugin
« Reply #9 on: April 19, 2012, 12:02:18 pm »
Has any progress seen made with this? I have just received my rx v671 AVR and it would be great if I could integrate it into my HA


CMRancho

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1000
Re: Yamaha Receiver (RX-Axxxx) Control Plugin
« Reply #10 on: April 19, 2012, 02:12:20 pm »
I have been hoping (silly me) that the promised March 15 release of the IR remote maker version of the software would be released so I wouldn't have to work so hard to make this work. In the meantime, I'm installing so many blinds that I've finally decided to order a 100 foot roll of 96" Phifer Sheerweave fabric to make them with. I should have bought stock in Somfy...
Vera123beta; Schlage, Kwikset, TZEMT400; Linksys cams, Smarteye cams, HSM100; Aeon, Everspring, Cooper, Leviton, Intermatic, FortrezZ, Global Caché, USB-UIRT, Somfy, etc.

TheSaint

  • Jr. Member
  • **
  • Posts: 55
Re: Yamaha Receiver (RX-Axxxx) Control Plugin
« Reply #11 on: January 29, 2013, 04:55:02 pm »
Any progress on this idea? I have an RX-A3010 and it would be amazing to be able to add it to my devices via ethernet/network. I have a separate app on my phone but that obviously doesn't help with automation.

Thiemen

  • Sr. Newbie
  • *
  • Posts: 30
Re: Yamaha Receiver (RX-Axxxx) Control Plugin
« Reply #12 on: February 01, 2013, 06:58:16 am »
I'm also interested, no ethernet, but RS232 on my Yam RX-V767

TheSaint

  • Jr. Member
  • **
  • Posts: 55
Re: Yamaha Receiver (RX-Axxxx) Control Plugin
« Reply #13 on: February 01, 2013, 08:10:30 am »
It has to be doable as there are many apps on phones that can control the units

baxy_AU

  • Full Member
  • ***
  • Posts: 177
Re: Yamaha Receiver (RX-Axxxx) Control Plugin
« Reply #14 on: February 01, 2013, 06:49:25 pm »
It has to be doable as there are many apps on phones that can control the units
If you ask the OP nicely in this thread http://forum.micasaverde.com/index.php/topic,10986.0.html
he may be able to help you out