Wow, @ysc that’s pretty cool for reverse engineering. I have the switch for my soundbar working with on/off functionality, but could you share a snippet of your sitemap with how you are handling the volume controls? are you using openhab2? and are they designed for a specific UI? is it configured with up/down control?
The volumes are numbers so in sitemaps a Slider or Setpoint will work.
Note that the max volume values in the MusicCast API depend on the device for some reason.
e.g. for my AV Receiver it’s 120 (?) and for the wireless speakers 60.
Glad to see that there’s something going forward in this topic.
I was really busy with things i had to do for my master degree
and Master thesis will take some time too in the 2nd half of this year,
but i will try to push this topic forward again in the next time.
Your reverse engineering and created stuff looks great btw.@ysc
This seems to be controlling musiccast from code, but has anyone looked into creating a zone for a linux server? Then I can stream to it. Was thinking a Raspberry PI in the garage.
i assume the two green buttons set the input t spotify and start the respective playlists? How does that exactly work. That would be lovely to be able to select at least some standard playlist to play on musiccast. even better would obviously an option to brows through spotify
@Tomibeck sure, but it’s not exactly MusicCast, it’s actually a channel of the yamahareceiver binding.
So it will only work with a receiver capable of communicating with the legacy protocol.
What I found is you can add favorites with the MusicCast app to your receiver, including Spotify playlists (just use the context menu & add to a favorites slot while you’re playing it):
Then using an item linked to the “netradiotune” channel, like this:
Number Yamaha_NetRadio "Net Radio" {channel="yamahareceiver:yamahaAV:xxxxxxx_xxxx_xxxx_xxxx_xxxxxxxxxxxx:netradiotune"}
You can send a playlist number to the item and it will tune your receiver to the corresponding playlist, including those which “rotate” once a week like Discover Weekly and Release Radar.
Hi, I’m just trying to show the AlbumArt on the HABPanel…
Right now I managed to get back the current jpg, but the beginning of the link seems to be missing…
I prepared the Yamaha binding to include the new Json based protocol. Yamaha calls it Yamaha extended control protocol. It is exclusively used in all AVRs produced later than ~2013 and therefore the addition is a good thing to have.
The first step is this PR:
If anybody wants to help implementing the actual protocol (based on the linked java library for example), you are very welcome.
I was looking for a standard image type. In the linked source code they use a RawType. I’m not sure if all UIs (android, iOS, Habmin, ClassicUI) can render this? With a StringType assigned to an Image in a sitemap they would all be able to display it, I guess.
I have a question that is somewhat related. I’m trying to issue HTTP commands to my receiver. I captured the messages using wireshark so I know it uses /YamahaRemoteControl/ctrl HTTP/1.1. However, I don’t know how to compose the sendHttpPostRequest(String url, String contentType, String content) message. I’m getting confused going around in circles. Here is a snippet of a trace.