Skip to content

Instantly share code, notes, and snippets.

@d-amend
Last active February 18, 2022 12:28
Show Gist options
  • Save d-amend/ff21152f90f014dc30522bb099625bcd to your computer and use it in GitHub Desktop.
Save d-amend/ff21152f90f014dc30522bb099625bcd to your computer and use it in GitHub Desktop.
Controlling Yamaha Receiver RX-V677 via http

Controlling Yamaha RX-V677 via HTTP

Execute Commands via curl

curl --request POST \ --url http://receiver-ip/YamahaRemoteControl/ctrl \ --header 'Content-Type: Content-Type text/xml; charset="utf-8"' \ --data '<YAMAHA_AV cmd="PUT"><Main_Zone><Sound_Video><Tone><Bass><Val>0</Val><Exp>1</Exp><Unit>dB</Unit></Bass></Tone></Sound_Video></Main_Zone></YAMAHA_AV>'

Power

Turn On

<YAMAHA_AV cmd="PUT"> <Main_Zone> <Power_Control> <Power>On</Power> </Power_Control> </Main_Zone> </YAMAHA_AV>

Turn Off

<YAMAHA_AV cmd="PUT"> <Main_Zone> <Power_Control> <Power>Standby</Power> </Power_Control> </Main_Zone> </YAMAHA_AV>

Volume

Set to -50.0 dB

<YAMAHA_AV cmd="PUT"> <Main_Zone> <Volume> <Lvl> <Val>-500</Val> <Exp>1</Exp> <Unit>dB</Unit> </Lvl> </Volume> </Main_Zone> </YAMAHA_AV>

Treble

<YAMAHA_AV cmd="PUT"> <Main_Zone> <Sound_Video> <Tone> <Treble> <Val>-50</Val> <Exp>1</Exp> <Unit>dB</Unit> </Treble> </Tone> </Sound_Video> </Main_Zone> </YAMAHA_AV>

Bass

<YAMAHA_AV cmd="PUT"> <Main_Zone> <Sound_Video> <Tone> <Bass> <Val>0</Val> <Exp>1</Exp> <Unit>dB</Unit> </Bass> </Tone> </Sound_Video> </Main_Zone> </YAMAHA_AV>

Extra Bass

Options:

  • Off
  • Auto

<YAMAHA_AV cmd="PUT"> <Main_Zone> <Sound_Video> <Extra_Bass>Auto</Extra_Bass> </Sound_Video> </Main_Zone> </YAMAHA_AV>

YPAO Volume

Improves Audio Quality on low volume

  • Off
  • Auto

<YAMAHA_AV cmd="PUT"> <Main_Zone> <Sound_Video> <YPAO_Volume>Off</YPAO_Volume> </Sound_Video> </Main_Zone> </YAMAHA_AV>`

Enhancer

<YAMAHA_AV cmd="PUT"> <Main_Zone> <Surround> <Program_Sel> <Current> <Enhancer>On</Enhancer> </Current> </Program_Sel> </Surround> </Main_Zone> </YAMAHA_AV>

Combining Settings - Presets

Reset Bass and Treble and set volume to -50.0 dB

curl --request POST \ --url http://receiver-ip/YamahaRemoteControl/ctrl \ --header 'Content-Type: Content-Type text/xml; charset="utf-8"' \ --data '<YAMAHA_AV cmd="PUT"><Main_Zone><Volume><Lvl><Val>-500</Val><Exp>1</Exp><Unit>dB</Unit></Lvl></Volume><Sound_Video><Tone><Bass><Val>0</Val><Exp>1</Exp><Unit>dB</Unit></Bass><Treble><Val>0</Val><Exp>1</Exp><Unit>dB</Unit></Treble></Tone></Sound_Video></Main_Zone></YAMAHA_AV>'

Set Bass to -6 dB and Treble to 0 and set volume to -50.0 dB

curl --request POST \ --url http://receiver-ip/YamahaRemoteControl/ctrl \ --header 'Content-Type: Content-Type text/xml; charset="utf-8"' \ --data '<YAMAHA_AV cmd="PUT"><Main_Zone><Volume><Lvl><Val>-500</Val><Exp>1</Exp><Unit>dB</Unit></Lvl></Volume><Sound_Video><Tone><Bass><Val>-60</Val><Exp>1</Exp><Unit>dB</Unit></Bass><Treble><Val>0</Val><Exp>1</Exp><Unit>dB</Unit></Treble></Tone></Sound_Video></Main_Zone></YAMAHA_AV>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment