Update Yamaha MusicCast to get and set sound program

As documented here it might be possible to both get and set the sound program on any MusicCast receiver: http://habitech.s3.amazonaws.com/PDFs/YAM/MusicCast/Yamaha%20MusicCast%20HTTP%20simplified%20API%20for%20ControlSystems.pdf

Don’t forget to vote for your own suggestion.

Probably the best way is to use the RESTful integration and create your own commands and sensors to better utilize the capabilities of MusicCast devices. This should be pretty simple :slight_smile: and you can easily control all exposed features. Actually, your request has inspired me to do it for my 4 MusicCast devices at home, thanks!

I’ve done this already if you want some examples.

1 Like

I’ve just added two controls to my system as well:

rest_command:
  musiccast_preset:
    url: 'http://{{ ip_address }}/YamahaExtendedControl/v1/netusb/recallPreset?zone=main&num={{ preset }}'
  musiccast_sleep:
    url: 'http://{{ ip_address }}/YamahaExtendedControl/v1/main/setSleep?sleep={{ minutes }}'

You call it with two parameters:

ip_address: '10.144.1.158'
preset: 1

or

ip_address: '10.144.1.158'
minutes: 30
1 Like

Btw, there is also an Extended API documentation available, mostly allowing to control multi room and other multi device set-ups.
https://www.symcon.de/forum/attachment.php?attachmentid=45621&d=1537699940
Might be useful to automate some whole house audio e.g. with a “Party” button or something similar :slight_smile: :partying_face: :wine_glass: :champagne:

Nice, thanks. I’ve never used party mode, I just Aircast to my main amps and set the sources in the zones to the main amps.

There are other commands is at least one command that are is undocumented in the basic api set too. e.g. The Zone command setExtraBass.

1 Like

Do you have the list of those extra commands?

No, that’s the only one I know of from chatting with Yamaha tech support. I did work out the zone command setDialogueLevel by looking at the existing api commands and trial and error but then later found an updated document with it included (linked above).

Ah, great! Didn’t notice it there. I can see I need a few more commands now in my automations :slight_smile: