Wiki

Clone wiki

android-http-remote / Yamaha Receiver example

#Table of Contents

Yamaha Receiver remote example

changing volume

POST http://192.168.3.125:80/YamahaRemoteControl/ctrl HTTP/1.1
CONTENT-TYPE: text/xml; charset="utf-8"
User-Agent: AV_CONTROLLER/4.20 (Android) Paros/3.2.13
Accept: */*
Accept-Language: en-us
Content-Length: 164
Host: 192.168.3.125:80
Connection: Keep-Alive

<?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT"><Main_Zone><Volume><Lvl><Val>-305</Val><Exp>1</Exp><Unit>dB</Unit></Lvl></Volume></Main_Zone></YAMAHA_AV>

with -305 being -30.5 decibel (dB)

toggle mute

same headers, different content

<?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT"><Main_Zone><Volume><Mute>On</Mute></Volume></Main_Zone></YAMAHA_AV>
<?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT"><Main_Zone><Volume><Mute>Off</Mute></Volume></Main_Zone></YAMAHA_AV>

changing input

<?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT"><Main_Zone><Input><Input_Sel>HDMI1</Input_Sel></Input></Main_Zone></YAMAHA_AV>
<?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT"><Main_Zone><Input><Input_Sel>AirPlay</Input_Sel></Input></Main_Zone></YAMAHA_AV>

toggle power

<?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT"><Main_Zone><Power_Control><Power>Standby</Power></Power_Control></Main_Zone></YAMAHA_AV>
<?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT"><Main_Zone><Power_Control><Power>On</Power></Power_Control></Main_Zone></YAMAHA_AV>

Select preset net radio

Example for selecting bookmark 1

<?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT"><NET_RADIO><List_Control><Direct_Sel>Line_1</Direct_Sel></List_Control></NET_RADIO></YAMAHA_AV>

other

descriptors

GET http://192.168.3.125:80/YamahaRemoteControl/desc.xml HTTP/1.1
GET http://192.168.3.125:8080/MediaRenderer/desc.xml HTTP/1.1

airplay control

<?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT"><AirPlay><Play_Control><Playback>Play</Playback></Play_Control></AirPlay></YAMAHA_AV>

Updated