Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIL11 is missing #4

Open
mcbain2k opened this issue Apr 26, 2019 · 5 comments
Open

SIL11 is missing #4

mcbain2k opened this issue Apr 26, 2019 · 5 comments

Comments

@mcbain2k
Copy link

command: input-selector:strm-box in eiscp-commands.json for SLI11 isnt there.

i add it in this lines:

json
commands
main
SLI
"11": {
"name": "strm-box",
"description": "sets STRM BOX",
"models": "set1"
},
value_mappings
main
SLI
"strm-box": {
"value": "11",
"models": "set1"
},

@djiwondee
Copy link

Hello @mcbain2k

I'm also dealing with that node-red model and figure out also missing commands. But my payload looks simpler.

[{"id":"36d068e.4cd4918","type":"eiscp-out","z":"755d7c8e.995f8c","name":"Onkyo eiscp Inject","controller":"bee2672a.e41b18","x":2610,"y":1120,"wires":[]},{"id":"7891493.e1ed638","type":"inject","z":"755d7c8e.995f8c","name":"","topic":"","payload":"system-power=query","payloadType":"str","repeat":"60","crontab":"","once":true,"onceDelay":"1","x":2300,"y":680,"wires":[["36d068e.4cd4918"]]},{"id":"cd45d3a6.87c598","type":"inject","z":"755d7c8e.995f8c","name":"","topic":"","payload":"system-power=on","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":2290,"y":1060,"wires":[["36d068e.4cd4918"]]},{"id":"a7cc45ed.7299b8","type":"inject","z":"755d7c8e.995f8c","name":"","topic":"","payload":"system-power=standby","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":2300,"y":920,"wires":[["36d068e.4cd4918"]]},{"id":"b9a4d15a.61808","type":"inject","z":"755d7c8e.995f8c","name":"","topic":"","payload":"preset=query","payloadType":"str","repeat":"60","crontab":"","once":true,"onceDelay":"3","x":2280,"y":760,"wires":[["36d068e.4cd4918"]]},{"id":"1b58537a.7cad5d","type":"inject","z":"755d7c8e.995f8c","name":"PRS02 (hr3)","topic":"","payload":"preset=2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":2270,"y":1000,"wires":[["36d068e.4cd4918"]]},{"id":"4fe89f2e.00edd","type":"inject","z":"755d7c8e.995f8c","name":"PRS01 (swr3)","topic":"","payload":"preset=1","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":2270,"y":960,"wires":[["36d068e.4cd4918"]]},{"id":"bc1875f5.6183a","type":"inject","z":"755d7c8e.995f8c","name":"","topic":"","payload":"audio-muting=query","payloadType":"str","repeat":"60","crontab":"","once":true,"onceDelay":"2","x":2300,"y":720,"wires":[["36d068e.4cd4918"]]},{"id":"29f695eb.3ef29a","type":"inject","z":"755d7c8e.995f8c","name":"","topic":"","payload":"master-volume=query","payloadType":"str","repeat":"60","crontab":"","once":true,"onceDelay":"5","x":2310,"y":840,"wires":[["36d068e.4cd4918"]]},{"id":"fdd6d5a5.f7ab58","type":"inject","z":"755d7c8e.995f8c","name":"","topic":"","payload":"input-selector=query","payloadType":"str","repeat":"60","crontab":"","once":true,"onceDelay":"4","x":2300,"y":800,"wires":[["36d068e.4cd4918"]]},{"id":"335df49b.e74c24","type":"inject","z":"755d7c8e.995f8c","name":"input selector Tuner","topic":"","payload":"main input-selector=fm","payloadType":"str","repeat":"60","crontab":"","once":true,"onceDelay":"4","x":2260,"y":1120,"wires":[["36d068e.4cd4918"]]},{"id":"bee2672a.e41b18","type":"eiscp-controller","z":"","name":"Onkyo Receiver","host":"XXX.XXX.XXX.XXX","port":"YYYY","model":"TX-NR676E"}]

image

Can you provide an example of your working setup? I guess I make some mistakes configuring the payload. Query parameters seams always work but running commands like input-selector='tv' fails while payload as of input-selector=networks quiet well regardless the ' ' for tv.

@mcbain2k
Copy link
Author

Hi djiwondee,
that was not my payload. I made changes in the file: eiscp-commands.json

Here my flow

[{"id":"80edaddd.354898","type":"tab","label":"Onkyo","disabled":false,"info":""},{"id":"36fed640.6ba75a","type":"eiscp-out","z":"80edaddd.354898","name":"","controller":"19ff1eb9.741709","x":810,"y":240,"wires":[]},{"id":"b599ec61.0447b8","type":"eiscp-in","z":"80edaddd.354898","name":"Onkyo_IN","controller":"19ff1eb9.741709","x":1300,"y":120,"wires":[["2530a36d.539bbc","c6529e7.9c9946","d4b8052.bb855f8","d21bf6ed.53925"]]},{"id":"4c1b8eb1.7599b8","type":"ui_button","z":"80edaddd.354898","name":"volume=level-up","group":"779d04ca.85c15c","order":1,"width":0,"height":0,"passthru":true,"label":" Volume","tooltip":"","color":"","bgcolor":"","icon":"fa-angle-double-up fa-3x","payload":"master-volume=level-up","payloadType":"str","topic":"","x":300,"y":360,"wires":[["36fed640.6ba75a"]]},{"id":"74bb2d69.99f614","type":"ui_button","z":"80edaddd.354898","name":"volume=level-down","group":"779d04ca.85c15c","order":2,"width":0,"height":0,"passthru":true,"label":" Volume","tooltip":"","color":"","bgcolor":"","icon":"fa-angle-double-down fa-3x ","payload":"master-volume=level-down","payloadType":"str","topic":"","x":310,"y":400,"wires":[["36fed640.6ba75a"]]},{"id":"c7139033.71406","type":"inject","z":"80edaddd.354898","name":"master-volume=query","topic":"","payload":"master-volume=query","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"11","x":380,"y":120,"wires":[["36fed640.6ba75a"]]},{"id":"d8aa26e.71e9f58","type":"inject","z":"80edaddd.354898","name":"input-selector=dvd BD/DVD","topic":"","payload":"input-selector=dvd","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":320,"y":760,"wires":[["36fed640.6ba75a"]]},{"id":"2530a36d.539bbc","type":"debug","z":"80edaddd.354898","name":"","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","x":1570,"y":120,"wires":[]},{"id":"845b93df.d3fc2","type":"inject","z":"80edaddd.354898","name":"input-selector=cd","topic":"","payload":"input-selector=cd","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":280,"y":800,"wires":[["36fed640.6ba75a"]]},{"id":"bc930f2f.f470c","type":"inject","z":"80edaddd.354898","name":"input-selector=tape","topic":"","payload":"input-selector=tape","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":730,"y":780,"wires":[[]]},{"id":"168e924b.ac5126","type":"inject","z":"80edaddd.354898","name":"input-selector=tape2","topic":"","payload":"input-selector=tape2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":730,"y":820,"wires":[[]]},{"id":"f1457068.1fdec","type":"inject","z":"80edaddd.354898","name":"input-selector=phono","topic":"","payload":"input-selector=phono","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":300,"y":840,"wires":[["36fed640.6ba75a"]]},{"id":"efc357d4.ba1f5","type":"inject","z":"80edaddd.354898","name":"input-selector=query","topic":"","payload":"input-selector=query","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"12","x":380,"y":160,"wires":[["36fed640.6ba75a"]]},{"id":"6e0af462.0f8854","type":"inject","z":"80edaddd.354898","name":"input-selector=up","topic":"","payload":"input-selector=up","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":280,"y":660,"wires":[["36fed640.6ba75a"]]},{"id":"60951c27.7ac97c","type":"inject","z":"80edaddd.354898","name":"input-selector=down","topic":"","payload":"input-selector=down","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":700,"wires":[["36fed640.6ba75a"]]},{"id":"757d5873.062788","type":"inject","z":"80edaddd.354898","name":"input-selector=video2 CBL/SAT","topic":"","payload":"input-selector=video2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":330,"y":880,"wires":[["36fed640.6ba75a"]]},{"id":"32ba7c47.580314","type":"inject","z":"80edaddd.354898","name":"input-selector=cbl CBL/SAT","topic":"","payload":"input-selector=cbl","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":320,"y":920,"wires":[["36fed640.6ba75a"]]},{"id":"85aeac0.215b2d8","type":"inject","z":"80edaddd.354898","name":"input-selector=sat CBL/SAT","topic":"","payload":"input-selector=sat","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":320,"y":960,"wires":[["36fed640.6ba75a"]]},{"id":"3d019409.caeb5c","type":"inject","z":"80edaddd.354898","name":"input-selector=video7","topic":"","payload":"input-selector=video7","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":720,"y":700,"wires":[[]]},{"id":"955b2a2f.2182d8","type":"inject","z":"80edaddd.354898","name":"input-selector=video4 AUX","topic":"","payload":"input-selector=video4","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":310,"y":1000,"wires":[["36fed640.6ba75a"]]},{"id":"d263b823.0046f8","type":"inject","z":"80edaddd.354898","name":"input-selector=video5","topic":"","payload":"input-selector=video5","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":720,"y":740,"wires":[[]]},{"id":"576aa22a.9fa194","type":"inject","z":"80edaddd.354898","name":"input-selector=video6 PC","topic":"","payload":"input-selector=video6","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":310,"y":1040,"wires":[["36fed640.6ba75a"]]},{"id":"fe5b56e8.c6fd5","type":"ui_button","z":"80edaddd.354898","name":"power=on","group":"779d04ca.85c15c","order":4,"width":0,"height":0,"passthru":true,"label":" Power On","tooltip":"","color":"","bgcolor":"","icon":"fa-bolt fa-2x","payload":"system-power=on","payloadType":"str","topic":"","x":280,"y":260,"wires":[["36fed640.6ba75a"]]},{"id":"f67514e4.cfd968","type":"ui_button","z":"80edaddd.354898","name":"power=standby","group":"779d04ca.85c15c","order":5,"width":0,"height":0,"passthru":true,"label":" Standby","tooltip":"","color":"","bgcolor":"","icon":"fa-power-off fa-2x","payload":"system-power=standby","payloadType":"str","topic":"","x":300,"y":300,"wires":[["36fed640.6ba75a"]]},{"id":"ea7806ba.6932e8","type":"ui_button","z":"80edaddd.354898","name":"selector=game","group":"779d04ca.85c15c","order":8,"width":0,"height":0,"passthru":true,"label":" Input","tooltip":"","color":"","bgcolor":"","icon":"fa-music fa-2x ","payload":"input-selector=video3","payloadType":"str","topic":"","x":300,"y":460,"wires":[["36fed640.6ba75a"]]},{"id":"bd63beca.43c3b8","type":"ui_button","z":"80edaddd.354898","name":"selector=strm-box","group":"779d04ca.85c15c","order":7,"width":0,"height":0,"passthru":true,"label":" Input","tooltip":"","color":"","bgcolor":"","icon":"fa-film fa-2x ","payload":"input-selector=strm-box","payloadType":"str","topic":"","x":310,"y":500,"wires":[["36fed640.6ba75a"]]},{"id":"dcad6d97.c89d1","type":"comment","z":"80edaddd.354898","name":"Keine Funktion:","info":"Keine Funktion:","x":680,"y":660,"wires":[]},{"id":"9ed61bcf.c24c5","type":"ui_button","z":"80edaddd.354898","name":"selector=tv-out","group":"779d04ca.85c15c","order":9,"width":0,"height":0,"passthru":true,"label":" Input","tooltip":"","color":"","bgcolor":"","icon":"fa-television fa-2x ","payload":"input-selector=tv-out","payloadType":"str","topic":"","x":300,"y":540,"wires":[["36fed640.6ba75a"]]},{"id":"2b814496.dbbdfc","type":"inject","z":"80edaddd.354898","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":360,"wires":[["4c1b8eb1.7599b8"]]},{"id":"e1edf2f7.a3ca8","type":"trigger","z":"80edaddd.354898","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"-2","extend":false,"units":"s","reset":"false","bytopic":"all","name":"","x":1040,"y":380,"wires":[["ee33e698.5dddf8"]]},{"id":"9c41d0fc.a568f8","type":"ui_switch","z":"80edaddd.354898","name":"","label":"Lautstärke fest","tooltip":"","group":"779d04ca.85c15c","order":15,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":860,"y":380,"wires":[["e1edf2f7.a3ca8"]]},{"id":"c6529e7.9c9946","type":"function","z":"80edaddd.354898","name":"lautstärke","func":"if (typeof msg.payload.command !== \"undefined\"){\nif(!msg.hasOwnProperty('payload.command')){\nif(!Array.isArray('msg.payload.command')){ \nif(msg.payload.command[0] == \"master-volume\"){\nvar vol = msg.payload.argument; \nglobal.set(\"gvol2\",msg.payload.argument);\nmsg.payload = vol;\nreturn msg;\n}\n else {\n //return; \n}\n}\n else {\n //return;\n}\n}\n}\nelse {\n //return;\n}\n","outputs":1,"noerr":0,"x":1460,"y":200,"wires":[["2488c877.dae7c8","54562f1d.772f98"]]},{"id":"2488c877.dae7c8","type":"debug","z":"80edaddd.354898","name":"","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","x":1790,"y":200,"wires":[]},{"id":"ee33e698.5dddf8","type":"function","z":"80edaddd.354898","name":"get gvol","func":"var vol = global.get(\"gvol\");\nvar com = \"master-volume=\";\nmsg.payload = com + vol;\nreturn msg;","outputs":1,"noerr":0,"x":1200,"y":380,"wires":[["36fed640.6ba75a"]]},{"id":"842106fe.4c415","type":"ui_slider","z":"80edaddd.354898","name":"","label":"Lautstärke fest:","tooltip":"","group":"779d04ca.85c15c","order":16,"width":0,"height":0,"passthru":true,"outs":"end","topic":"vol","min":0,"max":"60","step":1,"x":860,"y":440,"wires":[["fff6903e.6c3f88","c3fd8484.720dc8"]]},{"id":"fff6903e.6c3f88","type":"function","z":"80edaddd.354898","name":"set gvol","func":"global.set(\"gvol\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":1200,"y":420,"wires":[[]]},{"id":"c3fd8484.720dc8","type":"ui_text","z":"80edaddd.354898","group":"779d04ca.85c15c","order":17,"width":0,"height":0,"name":"","label":"Laustärke fest:","format":"{{msg.payload}}","layout":"row-spread","x":1180,"y":460,"wires":[]},{"id":"54562f1d.772f98","type":"ui_text","z":"80edaddd.354898","group":"779d04ca.85c15c","order":11,"width":0,"height":0,"name":"","label":"Laustärke akt:","format":"{{msg.payload}}","layout":"row-spread","x":1800,"y":160,"wires":[]},{"id":"d07ca101.1dad48","type":"switch","z":"80edaddd.354898","name":"Filter Null","property":"payload","propertyType":"msg","rules":[{"t":"null"},{"t":"nnull"}],"checkall":"true","repair":false,"outputs":2,"x":1800,"y":40,"wires":[[],[]]},{"id":"ff1ac25c.1783b","type":"inject","z":"80edaddd.354898","name":"system-power=query","topic":"","payload":"system-power=query","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"10","x":380,"y":80,"wires":[["36fed640.6ba75a"]]},{"id":"b59bc82e.44c7a","type":"comment","z":"80edaddd.354898","name":"at Startup:","info":"Keine Funktion:","x":320,"y":40,"wires":[]},{"id":"d4b8052.bb855f8","type":"function","z":"80edaddd.354898","name":"powermode","func":"if (!msg.hasOwnProperty('payload.command')){\nif (msg.payload.command == \"system-power\" ){\nvar stat = msg.payload.argument; \nmsg.payload = stat;\nreturn msg;\n}}\nelse {\n return;\n}","outputs":1,"noerr":0,"x":1470,"y":300,"wires":[["424d0f9d.f5a3d8","beb880d5.a9d408"]]},{"id":"424d0f9d.f5a3d8","type":"debug","z":"80edaddd.354898","name":"","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","x":1790,"y":300,"wires":[]},{"id":"beb880d5.a9d408","type":"ui_text","z":"80edaddd.354898","group":"779d04ca.85c15c","order":12,"width":0,"height":0,"name":"","label":"Powermode:","format":"{{msg.payload}}","layout":"row-spread","x":1790,"y":260,"wires":[]},{"id":"d21bf6ed.53925","type":"function","z":"80edaddd.354898","name":"input","func":"if (!msg.hasOwnProperty('payload.command')){\nif (msg.payload.command == \"input-selector\" ){\nvar stat = msg.payload.argument; \nmsg.payload = stat;\nreturn msg;\n}}\nelse {\n return;\n}","outputs":1,"noerr":0,"x":1450,"y":400,"wires":[["10f866c5.c5fe89","b936e7de.8a99c"]]},{"id":"b936e7de.8a99c","type":"ui_text","z":"80edaddd.354898","group":"779d04ca.85c15c","order":13,"width":0,"height":0,"name":"","label":"Input:","format":"{{msg.payload}}","layout":"row-spread","x":1770,"y":360,"wires":[]},{"id":"10f866c5.c5fe89","type":"debug","z":"80edaddd.354898","name":"","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","x":1790,"y":400,"wires":[]},{"id":"2802a8b5.c6a03","type":"comment","z":"80edaddd.354898","name":"Feste Lautstärke:","info":"Keine Funktion:","x":860,"y":340,"wires":[]},{"id":"50955ef.6803d2","type":"function","z":"80edaddd.354898","name":"","func":"if (!msg.hasOwnProperty('payload.command')){\nreturn msg;}\nelse{\nreturn;\n}","outputs":1,"noerr":0,"x":1650,"y":40,"wires":[[]]},{"id":"891ab64c.917a7","type":"comment","z":"80edaddd.354898","name":"msg2.payload = JSON.stringify(msg.payload.command).length;","info":"","x":2230,"y":120,"wires":[]},{"id":"bc72ec.34e7cd18","type":"comment","z":"80edaddd.354898","name":"Nicht gebraucht:","info":"Keine Funktion:","x":280,"y":620,"wires":[]},{"id":"19ff1eb9.741709","type":"eiscp-controller","z":"","name":"Onkyo","host":"192.168.0.28","port":"60128","model":"TX-NR646"},{"id":"779d04ca.85c15c","type":"ui_group","z":"","name":"Onkyo","tab":"e4921b28.eacdf8","order":1,"disp":true,"width":"6","collapse":false},{"id":"e4921b28.eacdf8","type":"ui_tab","z":"","name":"Media","icon":"dashboard","disabled":false,"hidden":false}]

You can use the eiscp-in node for debug.
Use the input-selector=up or input-selector=down payload and check the message from eiscp-in node.
grafik

For the TV (the video-out port) i have to use SLI12, this is also not supported by the orginal eiscp-commands.json

Here my mod-version with input-selector=tv-out for SLI12 include:
eiscp-commands.json.txt

just rename it to eiscp-commands.json and move it where the original file is.

@djiwondee
Copy link

Hello @mcbain2k ,

thank your for providing your sample flow. It has really helped me to better understand how the entire setup works, especially regarding the eiscp required payload. So my summary is, node-red-contrib-eiscp seems a little bit buggy and it makes always sense to investigate in the eiscp-commands.json-file.

On my test env I have also onkyo-eiscp deployed and at least executing commands in a shell seems to work much reliable. Will spend some time to look at its eiscp-commands.json-file. May be it is better maintained. Overall node-red-contrib-eiscp seems looks unfortunately abandoned but is still very functional.My receiver as a year 2017 model and this years old code still works.

Btw.: have you figured out wether it is possible to send JSON commands into the eiscp node? Or does the node only understand eiscp-commands?

@aborovsky
Copy link
Member

@mcbain2k how about to add example and initial setup flow into README.md and create a PR? That's would be great.

@aborovsky
Copy link
Member

@djiwondee it's not really abandoned. But i have no Onkyo device nowadays to test and implement new features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants