Yamaha CRX-N560D

Trying to figure out its API and control it via NodeRed or else

Web Radio

API

curl -v -X POST "http://192.168.x.y/YamahaRemoteControl/ctrl" -H "Content-Type: text/plain" --data-raw "$body"

Info

  • “Basic Status”
❯ body="<?xml version=\"1.0\" encoding=\"utf-8\"?><YAMAHA_AV cmd=\"GET\"><System><Basic_Status>GetParam</Basic_Status></System></YAMAHA_AV>"

<YAMAHA_AV rsp="GET" RC="0"><System><Basic_Status><Power_Control><Power>On</Power><Sleep>Off</Sleep></Power_Control><Volume><Lvl>8</Lvl><Mute>Off</Mute></Volume><Input><Input_Sel>Spotify</Input_Sel></Input></Basic_Status></System></YAMAHA_AV>
  • Config
❯ body="<?xml version=\"1.0\" encoding=\"utf-8\"?><YAMAHA_AV cmd=\"GET\"><System><Config>GetParam</Config></System></YAMAHA_AV>"

<YAMAHA_AV rsp="GET" RC="0"><System><Config><Model_Name>CRX-N560D</Model_Name><System_ID>02348283</System_ID><Version>1.17/1.01</Version><Feature_Existence>CD,TUNER,AUX1,AUX2,DIGITAL1,DIGITAL2,SERVER,NET RADIO,USB,AirPlay,Spotify</Feature_Existence><Range_and_Step><Volume><Min>0</Min><Max>60</Max><Step>1</Step></Volume><Equalizer><Min>-10</Min><Max>10</Max><Step>1</Step></Equalizer><Balance><Min>-10</Min><Max>10</Max><Step>1</Step></Balance><FL_Dimmer><Min>1</Min><Max>3</Max><Step>1</Step></FL_Dimmer></Range_and_Step></Config></System></YAMAHA_AV>
  • Power State
❯ body="<?xml version=\"1.0\" encoding=\"utf-8\"?><YAMAHA_AV cmd=\"GET\"><System><Power_Control><Power>GetParam</Power></Power_Control></System></YAMAHA_AV>"

<YAMAHA_AV rsp="GET" RC="0"><System><Power_Control><Power>On</Power></Power_Control></System></YAMAHA_AV>
  • Current Input
body="<?xml version=\"1.0\" encoding=\"utf-8\"?><YAMAHA_AV cmd=\"GET\"><System><Input><Input_Sel>GetParam</Input_Sel></Input></System></YAMAHA_AV>"

<YAMAHA_AV rsp="GET" RC="0"><System><Input><Input_Sel>Spotify</Input_Sel></Input></System></YAMAHA_AV>
  • Playback Info (broken?)
body="<?xml version=\"1.0\" encoding=\"utf-8\"?><YAMAHA_AV cmd=\"GET\"><Player><Play_Info>GetParam</Play_Info></Player></YAMAHA_AV>"

<YAMAHA_AV rsp="GET" RC="0"><Player><Play_Info><Playback_Info>Play</Playback_Info><Device_Type>MSC</Device_Type><iPod_Mode>Normal</iPod_Mode><Play_Mode><Repeat>Off</Repeat><Shuffle>Off</Shuffle></Play_Mode><Play_Time>0</Play_Time><Track_Number>0</Track_Number><Total_Tracks>0</Total_Tracks><Meta_Info><Artist>Skyline Motel</Artist><Album>Fields of Knowing</Album><Song>Fields of Knowing</Song></Meta_Info><Album_ART><URL></URL><ID>0</ID><Format>YMF</Format></Album_ART></Play_Info></Player></YAMAHA_AV>

Actions

  • Power off (Standy)
body="<?xml version=\"1.0\" encoding=\"utf-8\"?><YAMAHA_AV cmd=\"PUT\"><System><Power_Control><Power>Standby</Power></Power_Control></System></YAMAHA_AV>"
  • Power on
body="<?xml version=\"1.0\" encoding=\"utf-8\"?><YAMAHA_AV cmd=\"PUT\"><System><Power_Control><Power>On</Power></Power_Control></System></YAMAHA_AV>"
  • Pause (toggle)
body="<?xml version=\"1.0\" encoding=\"utf-8\"?><YAMAHA_AV cmd=\"PUT\"><Player><Play_Control><Playback>Pause</Playback></Play_Control></Player></YAMAHA_AV>"

References