Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

[Yamaha binding] Add netradio support #1498

Merged
merged 4 commits into from
Oct 8, 2014
Merged

[Yamaha binding] Add netradio support #1498

merged 4 commits into from
Oct 8, 2014

Conversation

sumnerboy12
Copy link
Contributor

No description provided.

@buildhive
Copy link

openhab » openhab #1285 SUCCESS
This pull request looks good
(what's this?)

@teichsta teichsta added this to the 1.6.0 milestone Oct 8, 2014
teichsta added a commit that referenced this pull request Oct 8, 2014
@teichsta teichsta merged commit f04c896 into openhab:master Oct 8, 2014
@teichsta
Copy link
Member

teichsta commented Oct 8, 2014

thanks, Ben!

@sumnerboy12 sumnerboy12 deleted the yamaha-add-netradio-support branch October 8, 2014 09:12
@photon-schiesser
Copy link

Could somebody add details to the Yamaha-Binding configuration page on the wiki as to how to use this NetRadio functionality? I apologize if this is not the right forum for this. Please let me know where to post about this.

@watou
Copy link
Contributor

watou commented Apr 19, 2016

The wiki page appears to cover the netRadio functionality of the binding. Please discuss at https://community.openhab.org if it's giving you trouble.

@photon-schiesser
Copy link

The wiki page you linked shows only the following under the "allowed binding types":
power, mute, volume, input, surroundProgram

NetRadio binding type is included in the example, but nothing is explained regarding how it works. It would be very helpful if there was a little explanation. Explain a bit to me here and I would be happy to submit a PR for the wiki (if that's allowed).

@watou
Copy link
Contributor

watou commented Apr 20, 2016

The wiki page you linked shows only the following under the "allowed binding types":
power, mute, volume, input, surroundProgram

You're right, a little explanation would be helpful beyond the example.

If you can locate a reliable explanation to include in the text of the wiki page, most likely from the community site, feel free to add the missing information here (no PR necessary, just be careful! 😄 ).

@Mikypan81
Copy link

Mikypan81 commented May 16, 2016

Hello, I've a Yamaha receiver RX/V475 but have some problems to select net radio channel.
I've discovered on the net this code that should allow to select net radio channel on yamaha receiver but I'm not a programmer and I don't know how to edit a jar binding, so I paste here the code, maybe someone can help me to make a try....
The only way to select a station is a solution like the following way:

public void setNetRadio(int lineNo) throws IOException {
        /* Jump to specified line in preset list */
        postAndGetResponse("<?xml version=\"1.0\" encoding=\"utf-8\"?><YAMAHA_AV cmd=\"PUT\"><NET_RADIO><List_Control><Jump_Line>"
                + "1</Jump_Line><Cursor>Sel</Cursor></List_Control></NET_RADIO></YAMAHA_AV>");
        try {
          Thread.currentThread().sleep(1000);
        } catch(InterruptedException ex) {
          Thread.currentThread().interrupt();
        }
        postAndGetResponse("<?xml version=\"1.0\" encoding=\"utf-8\"?><YAMAHA_AV cmd=\"PUT\"><NET_RADIO><List_Control><Jump_Line>"
                + "1</Jump_Line><Cursor>Sel</Cursor></List_Control></NET_RADIO></YAMAHA_AV>");
        try {
          Thread.currentThread().sleep(1000);
        } catch(InterruptedException ex) {
          Thread.currentThread().interrupt();

        }
        postAndGetResponse("<?xml version=\"1.0\" encoding=\"utf-8\"?><YAMAHA_AV cmd=\"PUT\"><NET_RADIO><List_Control><Jump_Line>"
                + lineNo + "</Jump_Line><Cursor>Sel</Cursor></List_Control></NET_RADIO></YAMAHA_AV>");
        postAndGetResponse("<?xml version=\"1.0\" encoding=\"utf-8\"?><YAMAHA_AV cmd=\"PUT\"><NET_RADIO><List_Control><Jump_Line>"
                + "Sel</Jump_Line><Cursor>Sel</Cursor></List_Control></NET_RADIO></YAMAHA_AV>");
    }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants