Hi,
sorry in advance for my probably bad english.
I try to control my ONKYO NCP-320 with homematic and node red.
power on/off
volume up/down
are working. But now I want to select my TuneIn presets and I don't know what to do.
This is my first node red project and I hope that somebody can help me.
[{"id":"dbe1e11e.1ebd5","type":"tab","label":"ONKYO Küche","disabled":false,"info":""},{"id":"6cd9fe0e.395b9","type":"function","z":"dbe1e11e.1ebd5","name":"System-Power: On","func":"msg.payload = \"system-power=on\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":390,"y":660,"wires":[["f9738aa.3194878"]]},{"id":"f9738aa.3194878","type":"eiscp-out","z":"dbe1e11e.1ebd5","name":"ONKYO Küche","controller":"5502d6b5.2ee598","x":1280,"y":720,"wires":[]},{"id":"f185c2dc.05253","type":"function","z":"dbe1e11e.1ebd5","name":"System-Power:Standby","func":"msg.payload = \"system-power=standby\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":410,"y":600,"wires":[["f9738aa.3194878"]]},{"id":"1d578df8.f98ba2","type":"ccu-value","z":"dbe1e11e.1ebd5","name":"Taste 2","iface":"HmIP-RF","channel":"000B5D89A51E25:2 Kueche:Wandtaster_ONKYO:2","datapoint":"PRESS_SHORT","mode":"","start":true,"change":true,"cache":false,"queue":false,"on":0,"onType":"undefined","ramp":0,"rampType":"undefined","working":false,"ccuConfig":"38263145.35ea0e","topic":"${CCU}/${Interface}/${channel}/${datapoint}","x":80,"y":660,"wires":[["6cd9fe0e.395b9"]]},{"id":"9745da44.637c68","type":"ccu-value","z":"dbe1e11e.1ebd5","name":"Taste 1","iface":"HmIP-RF","channel":"000B5D89A51E25:1 Kueche:Wandtaster_ONKYO:1","datapoint":"PRESS_SHORT","mode":"","start":true,"change":true,"cache":false,"queue":false,"on":0,"onType":"undefined","ramp":0,"rampType":"undefined","working":false,"ccuConfig":"38263145.35ea0e","topic":"${CCU}/${Interface}/${channel}/${datapoint}","x":80,"y":600,"wires":[["f185c2dc.05253"]]},{"id":"ccf03efd.3a04a","type":"ccu-value","z":"dbe1e11e.1ebd5","name":"Taste 4","iface":"HmIP-RF","channel":"000B5D89A51E25:4 Kueche:Wandtaster_ONKYO:4","datapoint":"PRESS_SHORT","mode":"","start":true,"change":true,"cache":false,"queue":false,"on":0,"onType":"undefined","ramp":0,"rampType":"undefined","working":false,"ccuConfig":"38263145.35ea0e","topic":"${CCU}/${Interface}/${channel}/${datapoint}","x":80,"y":780,"wires":[["5c998ad9.c21064"]]},{"id":"bba28404.921bd8","type":"eiscp-in","z":"dbe1e11e.1ebd5","name":"ONKYO Küche","controller":"5502d6b5.2ee598","x":110,"y":360,"wires":[["c1c675d9.9a1e48","ab97bf97.9ec73","8510680b.3ffb78"]]},{"id":"c1c675d9.9a1e48","type":"switch","z":"dbe1e11e.1ebd5","name":"Split volume status","property":"payload.command[0]","propertyType":"msg","rules":[{"t":"eq","v":"master-volume","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":410,"y":300,"wires":[["246ac7f3.3521b8"]]},{"id":"246ac7f3.3521b8","type":"change","z":"dbe1e11e.1ebd5","name":"Current master volume-status","rules":[{"t":"set","p":"topic","pt":"msg","to":"master-volume","tot":"str"},{"t":"move","p":"payload.argument","pt":"msg","to":"payload","tot":"msg"},{"t":"delete","p":"payload.command","pt":"msg"},{"t":"delete","p":"payload.argument","pt":"msg"},{"t":"delete","p":"payload.iscp_command","pt":"msg"},{"t":"delete","p":"payload.host","pt":"msg"},{"t":"delete","p":"payload.port","pt":"msg"},{"t":"delete","p":"payload.model","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":300,"wires":[["cd0dbe1.64b244","f9bfb93e.6d76f8"]]},{"id":"f4839b5c.f13f08","type":"change","z":"dbe1e11e.1ebd5","name":"Current power status","rules":[{"t":"set","p":"topic","pt":"msg","to":"system-power","tot":"str"},{"t":"move","p":"payload.argument","pt":"msg","to":"payload","tot":"msg"},{"t":"delete","p":"payload.command","pt":"msg"},{"t":"delete","p":"payload.argument","pt":"msg"},{"t":"delete","p":"payload.iscp_command","pt":"msg"},{"t":"delete","p":"payload.host","pt":"msg"},{"t":"delete","p":"payload.port","pt":"msg"},{"t":"delete","p":"payload.model","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":360,"wires":[["c491356e.31a478"]]},{"id":"ab97bf97.9ec73","type":"switch","z":"dbe1e11e.1ebd5","name":"Split system status","property":"payload.command","propertyType":"msg","rules":[{"t":"eq","v":"system-power","vt":"str"},{"t":"eq","v":"audio-muting","vt":"str"},{"t":"eq","v":"input-selector","vt":"str"},{"t":"eq","v":"preset","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":410,"y":440,"wires":[["f4839b5c.f13f08"],["33f36e31.261be2"],["37b4e825.852598"],["b520bd63.1951f"]]},{"id":"c491356e.31a478","type":"ccu-sysvar","z":"dbe1e11e.1ebd5","name":"SV_Kueche_ONKYO_on_off","ccuConfig":"38263145.35ea0e","topic":"ReGaHSS/${Name}","change":true,"cache":true,"x":1040,"y":360,"wires":[[]]},{"id":"33f36e31.261be2","type":"change","z":"dbe1e11e.1ebd5","name":"Current audio-muting status","rules":[{"t":"set","p":"topic","pt":"msg","to":"audio-muting","tot":"str"},{"t":"move","p":"payload.argument","pt":"msg","to":"payload","tot":"msg"},{"t":"delete","p":"payload.command","pt":"msg"},{"t":"delete","p":"payload.argument","pt":"msg"},{"t":"delete","p":"payload.iscp_command","pt":"msg"},{"t":"delete","p":"payload.host","pt":"msg"},{"t":"delete","p":"payload.port","pt":"msg"},{"t":"delete","p":"payload.model","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":420,"wires":[[]]},{"id":"37b4e825.852598","type":"change","z":"dbe1e11e.1ebd5","name":"Current input-selector status","rules":[{"t":"set","p":"topic","pt":"msg","to":"input-selector","tot":"str"},{"t":"move","p":"payload.iscp_command","pt":"msg","to":"payload","tot":"msg"},{"t":"delete","p":"payload.command","pt":"msg"},{"t":"delete","p":"payload.iscp_command","pt":"msg"},{"t":"delete","p":"payload.host","pt":"msg"},{"t":"delete","p":"payload.port","pt":"msg"},{"t":"delete","p":"payload.model","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":480,"wires":[[]]},{"id":"b520bd63.1951f","type":"change","z":"dbe1e11e.1ebd5","name":"Current station preset","rules":[{"t":"set","p":"topic","pt":"msg","to":"preset","tot":"str"},{"t":"move","p":"payload.iscp_command","pt":"msg","to":"payload","tot":"msg"},{"t":"delete","p":"payload.command","pt":"msg"},{"t":"delete","p":"payload.iscp_command","pt":"msg"},{"t":"delete","p":"payload.host","pt":"msg"},{"t":"delete","p":"payload.port","pt":"msg"},{"t":"delete","p":"payload.model","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":540,"wires":[[]]},{"id":"cd0dbe1.64b244","type":"function","z":"dbe1e11e.1ebd5","name":"master volume -","func":"var x =msg.payload;\nmsg.payload = x-1;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1000,"y":300,"wires":[["6bca686d.b6e938"]]},{"id":"f9bfb93e.6d76f8","type":"function","z":"dbe1e11e.1ebd5","name":"master volume +","func":"var x =msg.payload;\nmsg.payload = x+1;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1010,"y":240,"wires":[["daa60b52.f90f78"]]},{"id":"55baa829.829188","type":"ccu-value","z":"dbe1e11e.1ebd5","name":"Taste 3","iface":"HmIP-RF","channel":"000B5D89A51E25:3 Kueche:Wandtaster_ONKYO:3","datapoint":"PRESS_SHORT","mode":"","start":true,"change":true,"cache":false,"queue":false,"on":0,"onType":"undefined","ramp":0,"rampType":"undefined","working":false,"ccuConfig":"38263145.35ea0e","topic":"${CCU}/${Interface}/${channel}/${datapoint}","x":80,"y":720,"wires":[["9277c2ba.e51a8"]]},{"id":"9277c2ba.e51a8","type":"function","z":"dbe1e11e.1ebd5","name":"master-volume minus hex get","func":"var x = global.get('minushex');\nmsg={raw:x};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":420,"y":720,"wires":[["f9738aa.3194878"]]},{"id":"6bca686d.b6e938","type":"change","z":"dbe1e11e.1ebd5","name":"master volume - in hex","rules":[{"t":"change","p":"payload","pt":"msg","from":"0","fromt":"num","to":"MVL00","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"1","fromt":"num","to":"MVL01","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"2","fromt":"num","to":"MVL02","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"3","fromt":"num","to":"MVL03","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"4","fromt":"num","to":"MVL04","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"5","fromt":"num","to":"MVL05","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"6","fromt":"num","to":"MVL06","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"7","fromt":"num","to":"MVL07","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"8","fromt":"num","to":"MVL08","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"9","fromt":"num","to":"MVL09","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"10","fromt":"num","to":"MVL0A","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"11","fromt":"num","to":"MVL0B","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"12","fromt":"num","to":"MVL0C","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"13","fromt":"num","to":"MVL0D","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"14","fromt":"num","to":"MVL0E","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"15","fromt":"num","to":"MVL0F","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"16","fromt":"num","to":"MVL10","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"17","fromt":"num","to":"MVL11","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"18","fromt":"num","to":"MVL12","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"19","fromt":"num","to":"MVL13","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"20","fromt":"num","to":"MVL14","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"21","fromt":"num","to":"MVL15","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"22","fromt":"num","to":"MVL16","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"23","fromt":"num","to":"MVL17","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"24","fromt":"num","to":"MVL18","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"25","fromt":"num","to":"MVL19","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"26","fromt":"num","to":"MVL1A","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"27","fromt":"num","to":"MVL1B","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"28","fromt":"num","to":"MVL1C","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"29","fromt":"num","to":"MVL1D","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"30","fromt":"num","to":"MVL1E","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"31","fromt":"num","to":"MVL1F","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"32","fromt":"num","to":"MVL20","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"33","fromt":"num","to":"MVL21","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"34","fromt":"num","to":"MVL22","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"35","fromt":"num","to":"MVL23","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1220,"y":300,"wires":[["11daab13.69f1e5"]]},{"id":"daa60b52.f90f78","type":"change","z":"dbe1e11e.1ebd5","name":"master volume + in hex","rules":[{"t":"change","p":"payload","pt":"msg","from":"0","fromt":"num","to":"MVL00","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"1","fromt":"num","to":"MVL01","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"2","fromt":"num","to":"MVL02","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"3","fromt":"num","to":"MVL03","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"4","fromt":"num","to":"MVL04","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"5","fromt":"num","to":"MVL05","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"6","fromt":"num","to":"MVL06","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"7","fromt":"num","to":"MVL07","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"8","fromt":"num","to":"MVL08","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"9","fromt":"num","to":"MVL09","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"10","fromt":"num","to":"MVL0A","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"11","fromt":"num","to":"MVL0B","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"12","fromt":"num","to":"MVL0C","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"13","fromt":"num","to":"MVL0D","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"14","fromt":"num","to":"MVL0E","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"15","fromt":"num","to":"MVL0F","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"16","fromt":"num","to":"MVL10","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"17","fromt":"num","to":"MVL11","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"18","fromt":"num","to":"MVL12","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"19","fromt":"num","to":"MVL13","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"20","fromt":"num","to":"MVL14","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"21","fromt":"num","to":"MVL15","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"22","fromt":"num","to":"MVL16","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"23","fromt":"num","to":"MVL17","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"24","fromt":"num","to":"MVL18","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"25","fromt":"num","to":"MVL19","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"26","fromt":"num","to":"MVL1A","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"27","fromt":"num","to":"MVL1B","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"28","fromt":"num","to":"MVL1C","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"29","fromt":"num","to":"MVL1D","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"30","fromt":"num","to":"MVL1E","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"31","fromt":"num","to":"MVL1F","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"32","fromt":"num","to":"MVL20","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"33","fromt":"num","to":"MVL21","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"34","fromt":"num","to":"MVL22","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"35","fromt":"num","to":"MVL23","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":240,"wires":[["75cfb9fb.8ecdd8"]]},{"id":"11daab13.69f1e5","type":"function","z":"dbe1e11e.1ebd5","name":"master volume minus hex set","func":"global.set('minushex', msg.payload);\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1500,"y":300,"wires":[[]]},{"id":"75cfb9fb.8ecdd8","type":"function","z":"dbe1e11e.1ebd5","name":"master volume plus hex set","func":"global.set('plushex', msg.payload);\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1500,"y":240,"wires":[[]]},{"id":"5c998ad9.c21064","type":"function","z":"dbe1e11e.1ebd5","name":"master-volume plus hex get","func":"var x = global.get('plushex');\nmsg={raw:x};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":420,"y":780,"wires":[["f9738aa.3194878"]]},{"id":"8c6cb9eb.701fd8","type":"ccu-value","z":"dbe1e11e.1ebd5","name":"Taste 6 lang","iface":"HmIP-RF","channel":"000B5D89A51E25:6 Kueche:Wandtaster_ONKYO:6","datapoint":"PRESS_LONG","mode":"","start":true,"change":true,"cache":false,"queue":false,"on":0,"onType":"undefined","ramp":0,"rampType":"undefined","working":false,"ccuConfig":"38263145.35ea0e","topic":"${CCU}/${Interface}/${channel}/${datapoint}","x":90,"y":1020,"wires":[[]]},{"id":"281a345d.2b94ec","type":"ccu-value","z":"dbe1e11e.1ebd5","name":"Taste 5","iface":"HmIP-RF","channel":"000B5D89A51E25:5 Kueche:Wandtaster_ONKYO:5","datapoint":"PRESS_SHORT","mode":"","start":true,"change":true,"cache":false,"queue":false,"on":0,"onType":"undefined","ramp":0,"rampType":"undefined","working":false,"ccuConfig":"38263145.35ea0e","topic":"${CCU}/${Interface}/${channel}/${datapoint}","x":80,"y":840,"wires":[[]]},{"id":"35646922.f008d6","type":"ccu-value","z":"dbe1e11e.1ebd5","name":"Taste 6","iface":"HmIP-RF","channel":"000B5D89A51E25:6 Kueche:Wandtaster_ONKYO:6","datapoint":"PRESS_SHORT","mode":"","start":true,"change":true,"cache":false,"queue":false,"on":0,"onType":"undefined","ramp":0,"rampType":"undefined","working":false,"ccuConfig":"38263145.35ea0e","topic":"${CCU}/${Interface}/${channel}/${datapoint}","x":80,"y":960,"wires":[[]]},{"id":"8510680b.3ffb78","type":"debug","z":"dbe1e11e.1ebd5","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":390,"y":360,"wires":[]},{"id":"c571eaaa.fb78a8","type":"ccu-value","z":"dbe1e11e.1ebd5","name":"Taste 5 long","iface":"HmIP-RF","channel":"000B5D89A51E25:5 Kueche:Wandtaster_ONKYO:5","datapoint":"PRESS_LONG","mode":"","start":true,"change":true,"cache":false,"queue":false,"on":0,"onType":"undefined","ramp":0,"rampType":"undefined","working":false,"ccuConfig":"38263145.35ea0e","topic":"${CCU}/${Interface}/${channel}/${datapoint}","x":90,"y":900,"wires":[[]]},{"id":"5502d6b5.2ee598","type":"eiscp-controller","name":"Onkyo Küche","host":"10.10.10.22","port":"60128","model":"NCP-302"},{"id":"38263145.35ea0e","type":"ccu-connection","name":"localhost","host":"localhost","regaEnabled":true,"bcrfEnabled":true,"iprfEnabled":true,"virtEnabled":true,"bcwiEnabled":false,"cuxdEnabled":false,"regaPoll":true,"regaInterval":"30","rpcPingTimeout":"60","rpcInitAddress":"127.0.0.1","rpcServerHost":"127.0.0.1","rpcBinPort":"2047","rpcXmlPort":"2048","tls":false,"inSecure":false,"authentication":false,"username":"","password":"","queueTimeout":"5000","queuePause":"250","contextStore":""}]