DENON AVR: support for POST requests

Today I am using Node-RED to perform HTTP POST requests to my DENON AVR (technically, it’s a Marantz preprocessor). I am doing this because I want to emulate the quick select buttons on the remote.

It goes something like this:

  "payload": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<tx>\n <cmd id=\"1\">SetQuickSelect</cmd>\n <zone>Main</zone>\n <value>1</value>\n</tx>\n",
  "topic": "input_button.quick_select_stereo_music",
  "_msgid": "4114c25391c3b172",
  "headers": {
    "User-Agent":"CyberGarage- HTTP / 1.1 DLNADOC / 1.50",
    "Content-Type":"text/xml; charset=\"utf-8\""

I would like to have support for two things:

  1. Quick select (depending on zone too, not just for the zone Main).
  2. More importantly, a service denonavr.post_command that allows me to post arbitrary XML, for things that my receiver might support but the denonavr integration does not currently.