Awesome dude !! You should push that to github or something, it could help many people!
I have a RX-V481 and the Extra Bass function is not available as GET request.
But the old Android “AV Controller” can set it On/Off.
By making a Man-In-The-Middle with Wireshark between the router and the receiver, I just found that there is a bunch of POST request that can be made.
The above described API is for Music Cast devices, your device is an older type but there is still an API you can use. It is a bit more complex as it requires sending an xml data. You can do it via shell_command. Below please find examples from my aplituner RX-V1067:
I am trying to implement some more features for my Music Cast system, namely to play last album added on Tidal. To achieve that I need to run a few restfull commands one after another, this works ok from web browser as well as from shell with curl. But when I’m trying to run it as a script in HA I am receiving Client error errors. I’ve described the case in detail here.
Any ideas how to evercome that?
I am trying to use the Yamaha music cast api to stream and play a single mp3 file from a media server like subsonic. Do anyone here know if that is possible? I have read the documentation and see that streaming is possible, but I didn’t see any requirement for specifying my mp3 file metadata and it’s location for streaming. Any idea how to go about this please?
Thank you for your response. I had to research HA after reading your reply. I am actually developing an app with python, and was hoping to intigrate an IOT function somewhere in-between.
Just a quick confirmation following what I read on HA RESTful API.
Can I still implement this “Instruction on how to integrate Yamaha MusicCast Receivers into Home Assistant.” directly into my python script with HA RESTful API, and not having to use HA’s frontend “card”?
You can utilize any feature of the Yamaha MusicCast API. Just look at the documentation. Not sure where the originals are so attaching it here. From my understanding you can more or less implement all features that are implemented in official music cast app.
@tom_l Thanks for sharing your work, I realllly appreciate: 95% of the work is done for my Yamaha RX-V4A your are awesome!
I wish with all my respect to what you have achieve here to help others avoid this small error in the code that did prevent my subwoofer level to work at first try
Hi Tom,
Unfortunately I’m very new to all this HA coding. I have a musiccast Yamaha receiver and would like to use your excelent remote code. But I don’t know what tot do with this code in this post. Is it possible to make a short manual where tot copy this blocks of code and what should be adjusted to my personal situation. As I said I’m not (yet) familiar with how HA and coding works. This would help me a lot in reaching my goal an d learn a lot how to use this coding bloks.
Thanks for your reply,
Sorry for being a novice but somewhere you have to start learning.
I allready have this Musicast running and I’m already using the avaiable (fround) entities.
But I’m missing a lot of the option you have above. The yamaha does have these options.
Can you tell me how (or if) I can add the missing commands. For instance a extra bas switch or subwoofer level. I know these option are controllable over IP since the official yamaha app can do this.
I hope you can push me a bit in the right direction, so I can add the needed options.
Hi All,
I totally not understand how things work. I have a yamaha amplifier RX-V581 which has all the option descibed above. All work from yamaha’s own app (over IP) so it is possible to control this over IP
but when I send: (from chrome)
http://‘MY IP’/YamahaExtendedControl/v1/main/setExtraBass?enable=true
It’s not working. (responc code: 3)
If I send:
http://‘MY IP’/YamahaExtendedControl/v1/main/setEnhancer?enable=true
It works perfectly
So what am I doing wrong (or is going wrong)
Is there anybody who can explain me a bit more on this ??
Those button presses are not described in the API documentation therefore not implemented. You could try to sniff the network traffic for those commands while using the mobile app and either provide it as feature request to the HA integration (it will take a while) or just implement your own REST commands to implement desired functions.
Btw, for my devices I have the back and arrows on my remote but I don’t have anything like that on the musiccast app. So based on my devices I’m afraid the only way to implement that would be via some kind of universal remote integrated with HA (e.g. broadlink) that would be firing the IR codes.