Instantly share code, notes, and snippets.

Embed
What would you like to do?
Volumio Volume Control via Amazon Echo
[{"id":"5f24c18e.924a48","type":"tab","label":"Radio","disabled":false,"info":"<img src=\"123\">"},{"id":"be7e3ac9.2862e","type":"http request","z":"5f24c18e.924a48","name":"Stop","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=stop","tls":"","x":650,"y":240,"wires":[[]]},{"id":"af16ca8d.3f8f9","type":"http request","z":"5f24c18e.924a48","name":"Play","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=play","tls":"","x":650,"y":280,"wires":[[]]},{"id":"4da63411.d4be6c","type":"alexa-local","z":"5f24c18e.924a48","devicename":"Radio","inputtrigger":true,"x":310,"y":340,"wires":[["f4da5dcc.f65818","1b8080d0.ae3aaf","38e74a8d.5a903e"]]},{"id":"f4da5dcc.f65818","type":"switch","z":"5f24c18e.924a48","name":"Volumio","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"off","vt":"str"},{"t":"cont","v":"on","vt":"str"}],"checkall":"true","outputs":2,"x":480,"y":260,"wires":[["be7e3ac9.2862e"],["af16ca8d.3f8f9"]]},{"id":"ae7cd232.77dad8","type":"inject","z":"5f24c18e.924a48","name":"","topic":"","payload":"on","payloadType":"str","repeat":"","crontab":"","once":false,"x":290,"y":200,"wires":[["f4da5dcc.f65818"]]},{"id":"15b2310b.7ec35f","type":"ui_switch","z":"5f24c18e.924a48","name":"","label":"Musik","group":"630327e8.bc8788","order":12,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"on","onvalueType":"str","onicon":"fa-play","oncolor":"ffffff","offvalue":"off","offvalueType":"str","officon":"fa-music","offcolor":"ffffff","x":270,"y":260,"wires":[["f4da5dcc.f65818"]]},{"id":"a0d95a0b.26ba4","type":"ui_template","z":"5f24c18e.924a48","group":"f36be21e.0368a","name":"","order":0,"width":"6","height":"8","format":"<div ng-bind-html=\"msg.payload\"></div>\n<iframe src=\"http://192.168.10.37\" height=\"400\"></iframe>","storeOutMessages":true,"fwdInMessages":false,"templateScope":"local","x":140,"y":920,"wires":[[]]},{"id":"554d0d3.2a8a1f4","type":"switch","z":"5f24c18e.924a48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"10","vt":"str"},{"t":"eq","v":"20","vt":"str"},{"t":"eq","v":"30","vt":"str"},{"t":"eq","v":"40","vt":"str"},{"t":"eq","v":"50","vt":"str"}],"checkall":"true","outputs":6,"x":889,"y":734,"wires":[["6970c90.d3fbf38"],["3b800839.720b88"],["93c94cd3.47ff"],["f12cc80a.0a877"],["5c8bb17.9146fd"],["e314317.65ed55"]]},{"id":"55d6b9a3.ad5e38","type":"ui_slider","z":"5f24c18e.924a48","name":"","label":"Lautstärke","group":"f36be21e.0368a","order":0,"width":0,"height":0,"passthru":true,"topic":"","min":0,"max":"100","step":"5","x":704,"y":735,"wires":[["554d0d3.2a8a1f4"]]},{"id":"3b800839.720b88","type":"http request","z":"5f24c18e.924a48","name":"Volume 10","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=volume&volume=10","tls":"","x":1110,"y":704,"wires":[[]]},{"id":"93c94cd3.47ff","type":"http request","z":"5f24c18e.924a48","name":"Volume 20","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=volume&volume=20","tls":"","x":1113,"y":750,"wires":[[]]},{"id":"f12cc80a.0a877","type":"http request","z":"5f24c18e.924a48","name":"Volume 30","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=volume&volume=30","tls":"","x":1112,"y":798,"wires":[[]]},{"id":"5c8bb17.9146fd","type":"http request","z":"5f24c18e.924a48","name":"Volume 40","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=volume&volume=40","tls":"","x":1110,"y":844,"wires":[[]]},{"id":"e314317.65ed55","type":"http request","z":"5f24c18e.924a48","name":"Volume 50","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=volume&volume=50","tls":"","x":1115,"y":890,"wires":[[]]},{"id":"59bc8def.a66384","type":"ui_button","z":"5f24c18e.924a48","name":"","group":"f36be21e.0368a","order":0,"width":0,"height":0,"passthru":false,"label":"Stumm","color":"","bgcolor":"","icon":"","payload":"0","payloadType":"str","topic":"","x":695,"y":783,"wires":[["554d0d3.2a8a1f4"]]},{"id":"6970c90.d3fbf38","type":"http request","z":"5f24c18e.924a48","name":"Volume 0","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=volume&volume=0","tls":"","x":1100,"y":660,"wires":[[]]},{"id":"a29fd8cb.bd0ca","type":"http request","z":"5f24c18e.924a48","name":"Radio Sender 1","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=play&N=2","tls":"","x":437,"y":697,"wires":[[]]},{"id":"53bc404a.074a58","type":"ui_button","z":"5f24c18e.924a48","name":"","group":"f36be21e.0368a","order":0,"width":0,"height":0,"passthru":false,"label":"Rock-Antenne","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":151,"y":695,"wires":[["a29fd8cb.bd0ca"]]},{"id":"277a5cf6.2446cc","type":"http request","z":"5f24c18e.924a48","name":"Radio Sender 2","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=play&N=1","tls":"","x":439,"y":749,"wires":[[]]},{"id":"db5e406b.4bc6e","type":"ui_button","z":"5f24c18e.924a48","name":"","group":"f36be21e.0368a","order":0,"width":0,"height":0,"passthru":false,"label":"Bayern 3","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":133,"y":747,"wires":[["277a5cf6.2446cc"]]},{"id":"41101260.178bb4","type":"http request","z":"5f24c18e.924a48","name":"Radio Sender 3","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=play&N=3","tls":"","x":446,"y":802,"wires":[[]]},{"id":"b0dbe26d.824738","type":"ui_button","z":"5f24c18e.924a48","name":"","group":"f36be21e.0368a","order":0,"width":0,"height":0,"passthru":false,"label":"Soft Rock Antenne","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":170,"y":800,"wires":[["41101260.178bb4"]]},{"id":"9eaef718.703268","type":"http request","z":"5f24c18e.924a48","name":"Radio Sender 4","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=play&N=0","tls":"","x":439,"y":859,"wires":[[]]},{"id":"353b2023.0156d","type":"ui_button","z":"5f24c18e.924a48","name":"","group":"f36be21e.0368a","order":0,"width":0,"height":0,"passthru":false,"label":"Antenne Bayern","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":153,"y":857,"wires":[["9eaef718.703268"]]},{"id":"1b8080d0.ae3aaf","type":"function","z":"5f24c18e.924a48","name":"payload","func":"// outputs: 2\nmsg.payload = msg.bri; \nreturn msg;","outputs":1,"noerr":0,"x":500,"y":340,"wires":[["d3908e22.f349b8"]]},{"id":"d3908e22.f349b8","type":"switch","z":"5f24c18e.924a48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"10","vt":"str"},{"t":"eq","v":"15","vt":"str"},{"t":"eq","v":"20","vt":"str"},{"t":"eq","v":"25","vt":"str"},{"t":"eq","v":"30","vt":"str"},{"t":"eq","v":"35","vt":"str"},{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"},{"t":"eq","v":"4","vt":"str"}],"checkall":"true","outputs":10,"x":790,"y":340,"wires":[["7e42e787.db5d7"],["20caef89.a32b58"],["783f7664.2b39f"],["10b770cc.823d87"],["8bc833c2.f29f68"],["2bd61427.51f064"],["3fb63830.cc33f8"],["79e7ca53.67c52c"],["23b392ae.154136"],["1354b19a.ef3aa6"]]},{"id":"20caef89.a32b58","type":"http request","z":"5f24c18e.924a48","name":"Volume 15","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=volume&volume=15","tls":"","x":1050,"y":180,"wires":[[]]},{"id":"783f7664.2b39f","type":"http request","z":"5f24c18e.924a48","name":"Volume 20","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=volume&volume=20","tls":"","x":1050,"y":220,"wires":[[]]},{"id":"10b770cc.823d87","type":"http request","z":"5f24c18e.924a48","name":"Volume 25","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=volume&volume=25","tls":"","x":1050,"y":260,"wires":[[]]},{"id":"8bc833c2.f29f68","type":"http request","z":"5f24c18e.924a48","name":"Volume 30","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=volume&volume=30","tls":"","x":1050,"y":300,"wires":[[]]},{"id":"2bd61427.51f064","type":"http request","z":"5f24c18e.924a48","name":"Volume 35","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=volume&volume=35","tls":"","x":1050,"y":340,"wires":[[]]},{"id":"7e42e787.db5d7","type":"http request","z":"5f24c18e.924a48","name":"Volume 10","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=volume&volume=10","tls":"","x":1050,"y":140,"wires":[[]]},{"id":"3fb63830.cc33f8","type":"http request","z":"5f24c18e.924a48","name":"Radio Sender 1","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=play&N=2","tls":"","x":1060,"y":380,"wires":[[]]},{"id":"79e7ca53.67c52c","type":"http request","z":"5f24c18e.924a48","name":"Radio Sender 2","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=play&N=1","tls":"","x":1060,"y":420,"wires":[[]]},{"id":"23b392ae.154136","type":"http request","z":"5f24c18e.924a48","name":"Radio Sender 3","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=play&N=3","tls":"","x":1060,"y":460,"wires":[[]]},{"id":"1354b19a.ef3aa6","type":"http request","z":"5f24c18e.924a48","name":"Radio Sender 4","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=play&N=4","tls":"","x":1060,"y":500,"wires":[[]]},{"id":"38e74a8d.5a903e","type":"debug","z":"5f24c18e.924a48","name":"","active":true,"console":"false","complete":"true","x":470,"y":400,"wires":[]},{"id":"1ce4361d.5a18da","type":"inject","z":"5f24c18e.924a48","name":"","topic":"sender","payload":"1","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":280,"wires":[["4da63411.d4be6c"]]},{"id":"935cdf2b.57ab38","type":"inject","z":"5f24c18e.924a48","name":"","topic":"sender","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":320,"wires":[["4da63411.d4be6c"]]},{"id":"a165655e.109928","type":"inject","z":"5f24c18e.924a48","name":"","topic":"sender","payload":"3","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":360,"wires":[["4da63411.d4be6c"]]},{"id":"a2127d3a.a8616","type":"inject","z":"5f24c18e.924a48","name":"","topic":"sender","payload":"4","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":400,"wires":[["4da63411.d4be6c"]]},{"id":"c59d2d45.85861","type":"comment","z":"5f24c18e.924a48","name":"Amazon Echo Sprachsteuerung für Volumio - Klick hier für mehr Infos","info":"\nZum Blogartikel [Amazon Echo mit Volumio](https://blog.unixweb.de/).","x":570,"y":100,"wires":[]},{"id":"630327e8.bc8788","type":"ui_group","z":"","name":"Licht","tab":"b498cb87.003b6","order":1,"disp":true,"width":"6"},{"id":"f36be21e.0368a","type":"ui_group","z":"","name":"Radio","tab":"b26e87ba.316ba8","order":1,"disp":true,"width":"6"},{"id":"b498cb87.003b6","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":1},{"id":"b26e87ba.316ba8","type":"ui_tab","z":"","name":"Radio","icon":"radio","order":4}]
@unixweb

This comment has been minimized.

Owner

unixweb commented Aug 28, 2018

bildschirmfoto 2018-08-29 um 22 16 04

Activate with following voice command: "Alexa, Radio 20 percent" or in German: "Alexa, Radio 20 Prozent".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment