Pioneer AV Receiver Control

These examples show how to send commands to Pioneer AV Receivers supporting a TCP interface.

The sample inject commands are a small subset of the available commands. Please refer to the full command list available from here: https://www.pioneerelectronics.com/StaticFiles/Custom%20Install/RS-232%20Codes/Av%20Receivers/Elite%20&%20Pioneer%20FY13AVR%20IP%20&%20RS-232%205-8-12.xls

An example of sending compound commands via an inject or MQTT node is also included.

To use the flows, modify the 'TCP Request' node to your specific IP address.

Enjoy :)

[{"id":"94732dcd.d1cdd","type":"debug","z":"df2d0bb5.c6af68","name":"","active":true,"console":"false","complete":"payload","x":939,"y":164,"wires":[]},{"id":"19050063.a654b","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Get Volume","payload":"?V","payloadType":"str","repeat":"","crontab":"","once":false,"x":155,"y":120,"wires":[["2d1afa7e.34cad6"]]},{"id":"e87aeb39.c50448","type":"tcp request","z":"df2d0bb5.c6af68","server":"192.168.2.42","port":"23","out":"time","splitc":"10","name":"Pioneer SCLX56 ","x":511,"y":162,"wires":[["db2db8a6.4b9ab8"]]},{"id":"db2db8a6.4b9ab8","type":"function","z":"df2d0bb5.c6af68","name":"Convert to String","func":"msg.payload = msg.payload.toString();\nreturn msg;","outputs":1,"noerr":0,"x":731,"y":163,"wires":[["94732dcd.d1cdd"]]},{"id":"97a1b45d.37f998","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Power ON","payload":"PO","payloadType":"str","repeat":"","crontab":"","once":false,"x":144,"y":162,"wires":[["2d1afa7e.34cad6"]]},{"id":"b1e27658.b91068","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Power OFF","payload":"PF","payloadType":"str","repeat":"","crontab":"","once":false,"x":157,"y":204,"wires":[["2d1afa7e.34cad6"]]},{"id":"c74cd0b3.39195","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Mute","payload":"MZ","payloadType":"str","repeat":"","crontab":"","once":false,"x":139,"y":244,"wires":[["2d1afa7e.34cad6"]]},{"id":"68de10f1.f3507","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Media Server","payload":"44FN","payloadType":"str","repeat":"","crontab":"","once":false,"x":172,"y":286,"wires":[["2d1afa7e.34cad6"]]},{"id":"85401310.51f3d","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"List Current Node","payload":"?GAH","payloadType":"str","repeat":"","crontab":"","once":false,"x":189,"y":329,"wires":[["2d1afa7e.34cad6"]]},{"id":"982f5a05.ee0198","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Select Item","payload":"01GFH","payloadType":"str","repeat":"","crontab":"","once":false,"x":169,"y":368,"wires":[["2d1afa7e.34cad6"]]},{"id":"9ce9c249.5bbf7","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Play","payload":"10NW","payloadType":"str","repeat":"","crontab":"","once":false,"x":140,"y":411,"wires":[["2d1afa7e.34cad6"]]},{"id":"76ed5ee.6c588a","type":"mqtt in","z":"df2d0bb5.c6af68","name":"","topic":"Pioneer/command","broker":"fca9574c.0356a8","x":613,"y":723,"wires":[["74236352.ed591c"]]},{"id":"2d1afa7e.34cad6","type":"function","z":"df2d0bb5.c6af68","name":"Add <CR>","func":"msg.payload = msg.payload + '\\r';\n\nreturn msg;","outputs":1,"noerr":0,"x":507,"y":321,"wires":[["e87aeb39.c50448"]]},{"id":"309cc051.1fd49","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Select Item","payload":"03GFH","payloadType":"str","repeat":"","crontab":"","once":false,"x":165,"y":457,"wires":[["2d1afa7e.34cad6"]]},{"id":"44751af9.56bda4","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Volume Up","payload":"VU","payloadType":"str","repeat":"","crontab":"","once":false,"x":159,"y":498,"wires":[["2d1afa7e.34cad6"]]},{"id":"e76dc30e.c2cfc","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Volume Down","payload":"VD","payloadType":"str","repeat":"","crontab":"","once":false,"x":150,"y":543,"wires":[["2d1afa7e.34cad6"]]},{"id":"5b6dd91f.b3ba78","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Random","payload":"35NW","payloadType":"str","repeat":"","crontab":"","once":false,"x":154,"y":588,"wires":[["2d1afa7e.34cad6"]]},{"id":"f10da26f.d632c","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Repeat","payload":"34NW","payloadType":"str","repeat":"","crontab":"","once":false,"x":144,"y":631,"wires":[["2d1afa7e.34cad6"]]},{"id":"a6aeee53.5778b","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Next","payload":"13NW","payloadType":"str","repeat":"","crontab":"","once":false,"x":143,"y":680,"wires":[["2d1afa7e.34cad6"]]},{"id":"f923db23.5a9dd8","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Previous","payload":"12NW","payloadType":"str","repeat":"","crontab":"","once":false,"x":347,"y":683,"wires":[["2d1afa7e.34cad6"]]},{"id":"4d6117b3.074a58","type":"splitter","z":"df2d0bb5.c6af68","name":"","property":"payload","x":563,"y":476,"wires":[["45e2bd0a.3c7624"]]},{"id":"ea9ded88.6b3d8","type":"inject","z":"df2d0bb5.c6af68","name":"Combo command","topic":"","payload":"PO 44FN 01GFH 01GFH 03GFH 01GFH 10NW","payloadType":"str","repeat":"","crontab":"","once":false,"x":625,"y":647,"wires":[["74236352.ed591c"]]},{"id":"74236352.ed591c","type":"function","z":"df2d0bb5.c6af68","name":"Convert commands to array","func":"msg.payload = msg.payload.toUpperCase().split(' ');\n\nreturn msg;","outputs":1,"noerr":0,"x":636,"y":550,"wires":[["a844abf2.acbe48","4d6117b3.074a58"]]},{"id":"45e2bd0a.3c7624","type":"delay","z":"df2d0bb5.c6af68","name":"","pauseType":"rate","timeout":"3","timeoutUnits":"seconds","rate":"30","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":575,"y":406,"wires":[["e88912f3.440c3","2d1afa7e.34cad6"]]},{"id":"a844abf2.acbe48","type":"debug","z":"df2d0bb5.c6af68","name":"","active":true,"console":"false","complete":"false","x":877,"y":465,"wires":[]},{"id":"e88912f3.440c3","type":"debug","z":"df2d0bb5.c6af68","name":"","active":true,"console":"false","complete":"false","x":737,"y":355,"wires":[]},{"id":"e1e6da0a.4dacf8","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Power State","payload":"?P","payloadType":"str","repeat":"","crontab":"","once":false,"x":155,"y":81,"wires":[["2d1afa7e.34cad6"]]},{"id":"5521dbbe.9273f4","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Input SAT/CBL","payload":"06FN","payloadType":"str","repeat":"","crontab":"","once":false,"x":180,"y":733,"wires":[["2d1afa7e.34cad6"]]},{"id":"54d12017.e3911","type":"inject","z":"df2d0bb5.c6af68","name":"","topic":"Get Input","payload":"?F","payloadType":"str","repeat":"","crontab":"","once":false,"x":392,"y":734,"wires":[["2d1afa7e.34cad6"]]},{"id":"4b3e9c2c.bddb94","type":"comment","z":"df2d0bb5.c6af68","name":"Read Me: Notes (please retain these notes if distributing the flows)","info":"Author: Mike Thompson, GitHub: mike-linus\nDate: 10/8/2016\n\nThese examples show how to send commands to Pioneer AV Receivers supporting a TCP interface.\n\nThe sample inject commands are a small subset of the available commands. Please refer to the full command list available from here:\nhttps://www.pioneerelectronics.com/StaticFiles/Custom%20Install/RS-232%20Codes/Av%20Receivers/Elite%20&%20Pioneer%20FY13AVR%20IP%20&%20RS-232%205-8-12.xls\n\nAn example of sending compound commands via an inject or MQTT node is also included.\n\nTo use the flows, modify the 'TCP Request' node to your specific IP address.\n","x":662,"y":70,"wires":[]},{"id":"fca9574c.0356a8","type":"mqtt-broker","z":"","broker":"192.168.2.40","port":"1883","clientid":"node-red","usetls":false,"verifyservercert":true,"compatmode":true,"keepalive":"15","cleansession":false,"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":""}]
mike-linus

Flow Info

created 1 year, 1 month ago

Node Types

Core
  • comment (x1)
  • debug (x3)
  • delay (x1)
  • function (x3)
  • inject (x19)
  • mqtt in (x1)
  • mqtt-broker (x1)
  • tcp request (x1)
Other

Tags

  • Pioneer
  • AV
  • Receiver
  • TCP
  • Amplifier
  • Audio
  • RS232
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option