krauskopf / node-red-contrib-avr-yamaha

Node-RED node to connect to Yamaha Audio Video Receivers (e.g. Yamaha AVR RX-677)
MIT License
21 stars 5 forks source link

MusicCast support #5

Open NovaGL opened 7 years ago

NovaGL commented 7 years ago

Any chance of you getting this to work with MusicCast players that would be great.

It uses a JSON API instead of XML on the older devices.

krauskopf commented 7 years ago

Sorry, currently I do not own a MusicCast capable device. Will try my best as soon as I get my hands on one. But can't tell when...

bbking78 commented 6 years ago

just got my hands on a WX-010 for xmas...would be great to control it over node-red. any chance on this?

samvdb commented 6 years ago

@krauskopf, newer models use udp broadcasting for their events and they have a new json api. I think your code is almost compatible though... Take a look at my github repo how i use events on Musiccast devices. https://github.com/samvdb/php-musiccast-api

Would you mind setting up a branch to get me started? Your code setup is pretty clean and i dont want to mess with it. Also, this github repo seems to have all the functions we need to get musiccast supported. https://github.com/foxthefox/yamaha-yxc-nodejs

Let me know what you think

krauskopf commented 6 years ago

Hi @samvdb,

thanks for your message and your willingness to contribute :-). I really appreciate your support and will try to do my best to support you. Although, I still have no MusicCast cappable device, yet.

I created a new branch and added you as a contributor to the repository. So, happy coding!

Regarding integration of the new API:

Let me know how I can help you.

Best Regards, Sebastian

samvdb commented 6 years ago

I will try to make some time in the coming weeks.

I'm guessing for BC reasons it might be best to create 3 new nodes ( GET PUT and Events). We might call it Yamaha AVR Extended or something (thats what Yamaha calls it).

For the UDP events it's pretty straight forward. Everything is documented quite well in the api specs. All you need to do is a GET request to a certain url to subscribe yourself. This needs to be done every 10 min. An UDP Unicast packet will be sent to the IP that requested the subscription. Headers are important for this part. I have not experimented with it a lot, but if the header information is not correct you will not receive events.

uzelac commented 5 years ago

Hi

Any luck with this ? I have Node-RED working with my AVR but Musiccast speaker is no go. Can't help in coding, sorry :)

Regards

LowLyan commented 5 years ago

Hi!

I'm trying to use these nodes with a YSP2700 soundbar (Musiccast). They don' work with PUT GET on port 80 (right?) Any news about Musiccast support?

Thanks

sawo69 commented 4 years ago

Musiccast integration would be great.

Sadly i don't have the skills to help.

vore commented 4 years ago

Hello! Any news on this? I have a Musiccast 20 which we could use for testing. There is some documentation here: http://habitech.s3.amazonaws.com/PDFs/YAM/MusicCast/Yamaha%20MusicCast%20HTTP%20simplified%20API%20for%20ControlSystems.pdf

Would this be hellfull: https://github.com/foxthefox/yamaha-yxc-nodejs

How can I help?

Regards

krauskopf commented 3 years ago

Sorry, no update from my side. As I still have no device with MusicCast support I am not able to implement the protocol. And programming the new features without being able to test is no valid option.

Sorry and regards, Sebastian

danie1kr commented 3 years ago

Hi all, I created a new package which uses the REST API for the Yamaha MusicCast devices here. It provides the nodejs API as provided by yamaha-yxc-nodejs. Maybe you want to give it a try.

Best Regards Daniel

Assertor90 commented 3 years ago

Hi Daniel, i have a Yamaha RX V4A and two Musiccast20, but i cant get your Node-red Module to work. Im not very experienced but im eager to learn, could you please post a working Flow so i can compare it and find the (probably obvious) mistakes i made.

Regards Sascha

danie1kr commented 3 years ago

Hi @Assertor90 I added an example here: https://github.com/danie1kr/node-red-contrib-yamaha-yxc For more questions, please continue there. Hope this helps!