Yamaha musiccast binding

Hi all,

Finally I got this working with my openhab 2 installation, but:

I’m just able to switch on/off or to read actual input, but is not refreshed nor read the actual status nor could I change volume or input :frowning:

Is this usual or a failure of my configuration??

Regards,
Joerg

Hi

can you send more details, especially your device, config and possibly logs? Code was written for YSP-1600, according to specification, it is possible that some features are not available or you have misconfiguration.

Hi,

I’m using a YAS306 as well as WX010 and both work with the code below.

Switch YAS306_Wohnz_Power “Wohnzimmer Power [%s]” (Musiccast) { http=“>[ON:GET:http://1.2.3.4/YamahaExtendedControl/v1/main/setPower?power=on] >[OFF:GET:http://1.2.3.4/YamahaExtendedControl/v1/main/setPower?power=standby]”}
Switch YAS306_Wohnz_Mute “Wohnzimmer Mute [%s]” (Musiccast) { http=“>[ON:GET:http://1.2.3.4/YamahaExtendedControl/v1/main/setMute?enable=true] >[OFF:GET:http://1.2.3.4/YamahaExtendedControl/v1/main/setMute?enable=false]” }
String YAS306a_Wohnz_Input “Wohnzimmer Eingang [MAP(yamaha.map):%s]” (Musiccast) {http=“<[http://1.2.3.4/YamahaExtendedControl/v1/main/getStatus:60000:JSONPATH($.input)]”}

Switches working fine, but do not have actual live status. e.g. Switch is off in openhab but device is powered on. Sure thing I can switch on (without any change) in OH and than switch off, but how do I “read” actual status first?? There are things recognized, but how do I read those??

Volume and Input simply show actual status, which is updated after some time (not at real time)

Regards
Joerg

Hi

I thought you use my application to communicate with MusicCast. Actually your case is relatively easy - when you configure items you define URL endpoints for each direction. However status endpoints are queried periodically: frequency is defined using updateInterval attribute (according to https://docs.openhab.org/addons/bindings/http1/readme.html). This determines how fast you get status into the interface. That’s why I decided to write own component - MusicCast pushes status informations using UDP protocol, so I can get them instantly and push to MQTT so OpenHab receives this information with low latency.

I would be very interested to configure the Musiccast speaker as default audio sink. Is this technically possible and are there any plans for implementing this? Thanks.

I think this has been asked several times already and it’s of course an interesting feature, which many (me included) would like to have. :slight_smile:

@ysc shared the corresponding sonos implementation already here.

Theoretically this should be possible.

Plans?
I don’t know how the current states of the different projects and their future plans are,

2 Likes

I’m very new at OpenHAB. Now i have installing the Yamaha-Binding to control my WX-030. The WX-030 was found automatically after the installing. It is available as a think, but it has a communication error.

Status: OFFLINE - COMMUNICATION_ERROR http://192.168.0.16:80/YamahaRemoteControl/ctrl

The IP is correct. i don’t know why it got this error.

@Bulvai Have you installed HTTP binding?

Hey David,

Hope all is fine. Any updates on the integration in the existing Yamaha Binding?

Thomas

No time for it right now

Cheers, David

@David any update?

Is there anything others could help with?

Its also okay to say that musiccast integration in the yamaha binding will not happen.

greets

I am going to buy a simple yahama yas-306 with musiccast support … is there any way to integrate it in OH?
Thanks
Lorenzo

Can Yamaha receivers be used as audio sink with existing binding?

There is no native musiccast binding, but you can use the http binding to integrate musiccast devices. There is an API documentation from Yamaha available. You can find all the information in this thread, e.g.

1 Like

I’m not particularly interested in Yamaha’s musiccast to be honest. Too many streaming protocols at the moment. I have Google cast, Alexa cast, alljoyn, upnp and Yamaha musiccast protocols in my network. That’s clearly too much.

I someone is going to add it, I will review though and get it included.

Cheers, David

I used the http binding as you describe…
I was able to get/set power, volume, input, even play the favourites but I was unable to understand how to play the playlist.

Anyone succeed with playing the playlist?
Thanks for your help

Sorry, I don’t use playlists with MusicCast and so have no experience how to call them with the http binding.

Hi,

based on the work of Frank Zimmer, I’m creating a binding on github. You can find it here: https://github.com/ddecockbe/yamaha

Currently, it only supports power and volume which will be automatically updated and you can configure. In the near future, additional channels will become available.

I hope it’s useful!

2 Likes

That’s great news.
Could you post this in it’s own thread, please, as this will be a new binding.
Thanks

Amazing! I was waiting so log for this. Thanks!