Hallo Michael, vielen Dank für deine Hilfe, nicht selbstverständlich. Ich versuche gerade den Code in einem neuen Flow, aber irgendwie bekomme ich keinen Ton heraus.
Code: Alles auswählen
[{"id":"d2196d76.f129b","type":"tab","label":"ComingHome neu","disabled":false,"info":""},{"id":"b5e1a0f5.fdfa5","type":"inject","z":"d2196d76.f129b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"payload","payload":"payload","payloadType":"msg","x":380,"y":160,"wires":[["2136b93c.d85f46"]]},{"id":"1011d347.3fb26d","type":"ccu-sysvar","z":"d2196d76.f129b","name":"URLVariable_Temp","ccuConfig":"38263145.35ea0e","topic":"ReGaHSS/${Name}","change":true,"cache":true,"x":410,"y":380,"wires":[["398a3f13.a99d"]]},{"id":"81452d2f.8534d","type":"debug","z":"d2196d76.f129b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1070,"y":320,"wires":[]},{"id":"c9fff4b1.8c84a8","type":"ui_toast","z":"d2196d76.f129b","position":"top right","displayTime":"3","highlight":"","sendall":true,"outputs":0,"ok":"OK","cancel":"","raw":false,"topic":"","name":"","x":1080,"y":420,"wires":[]},{"id":"79040064.04f72","type":"ui_button","z":"d2196d76.f129b","name":"","group":"46fbe67a.90cd18","order":3,"width":0,"height":0,"passthru":false,"label":"button","tooltip":"","color":"","bgcolor":"","icon":"","payload":"URLVariable","payloadType":"global","topic":"Geht?","topicType":"str","x":890,"y":380,"wires":[["c9fff4b1.8c84a8","81452d2f.8534d"]]},{"id":"398a3f13.a99d","type":"change","z":"d2196d76.f129b","name":"","rules":[{"t":"set","p":"URLVariable","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":380,"wires":[["79040064.04f72"]]},{"id":"b22138d0.47ba98","type":"function","z":"d2196d76.f129b","name":"Willkommen zu Hause","func":"[\n {\n \"id\": \"f905e71a644970cf\",\n \"type\": \"template\",\n \"z\": \"7953bea77060052e\",\n \"name\": \"Willkommen zu Hause\",\n \"field\": \"payload\",\n \"fieldType\": \"msg\",\n \"format\": \"json\",\n \"syntax\": \"mustache\",\n \"template\": \"{\\n\\\"type\\\": \\\"MEDIA\\\",\\n\\\"contentType\\\": \\\"audio/vnd.wav\\\",\\n\\\"streamType\\\": \\\"BUFFERED\\\",\\n \\\"media\\\": [\\n { \\\"url\\\": \\\"http://192.168.178.169/addons/sounds/im-wohnzimmer.wav\\\" },\\n { \\\"url\\\": \\\"{{ulr}}\\\" } \\n ]\\n}\",\n \"output\": \"json\",\n \"x\": 780,\n \"y\": 700,\n \"wires\": [\n []\n ]\n },\n {\n \"id\": \"5656c7e9cec7ca4d\",\n \"type\": \"change\",\n \"z\": \"7953bea77060052e\",\n \"name\": \"Volume auf 40\",\n \"rules\": [\n {\n \"t\": \"set\",\n \"p\": \"payload\",\n \"pt\": \"msg\",\n \"to\": \"{\\\"app\\\":\\\"DefaultMediaReceiver\\\",\\\"type\\\":\\\"VOLUME\\\",\\\"volume\\\":40}\",\n \"tot\": \"json\"\n }\n ],\n \"action\": \"\",\n \"property\": \"\",\n \"from\": \"\",\n \"to\": \"\",\n \"reg\": false,\n \"x\": 460,\n \"y\": 600,\n \"wires\": [\n []\n ]\n },\n {\n \"id\": \"dc69ce72c614349f\",\n \"type\": \"change\",\n \"z\": \"7953bea77060052e\",\n \"name\": \"Volume auf 10\",\n \"rules\": [\n {\n \"t\": \"set\",\n \"p\": \"payload\",\n \"pt\": \"msg\",\n \"to\": \"{\\\"app\\\":\\\"DefaultMediaReceiver\\\",\\\"type\\\":\\\"VOLUME\\\",\\\"volume\\\":10}\",\n \"tot\": \"json\"\n }\n ],\n \"action\": \"\",\n \"property\": \"\",\n \"from\": \"\",\n \"to\": \"\",\n \"reg\": false,\n \"x\": 660,\n \"y\": 600,\n \"wires\": [\n []\n ]\n },\n {\n \"id\": \"2e0782da53fb1e7f\",\n \"type\": \"change\",\n \"z\": \"7953bea77060052e\",\n \"name\": \"Close\",\n \"rules\": [\n {\n \"t\": \"set\",\n \"p\": \"payload\",\n \"pt\": \"msg\",\n \"to\": \"{\\\"app\\\":\\\"DefaultMediaReceiver\\\",\\\"type\\\":\\\"CLOSE\\\"}\",\n \"tot\": \"json\"\n }\n ],\n \"action\": \"\",\n \"property\": \"\",\n \"from\": \"\",\n \"to\": \"\",\n \"reg\": false,\n \"x\": 850,\n \"y\": 600,\n \"wires\": [\n []\n ]\n },\n {\n \"id\": \"e4b227a54f7541b8\",\n \"type\": \"change\",\n \"z\": \"7953bea77060052e\",\n \"name\": \"get URLVariable\",\n \"rules\": [\n {\n \"t\": \"set\",\n \"p\": \"ulr\",\n \"pt\": \"msg\",\n \"to\": \"URLVariable\",\n \"tot\": \"global\"\n }\n ],\n \"action\": \"\",\n \"property\": \"\",\n \"from\": \"\",\n \"to\": \"\",\n \"reg\": false,\n \"x\": 540,\n \"y\": 700,\n \"wires\": [\n [\n \"f905e71a644970cf\"\n ]\n ]\n }\n]","outputs":1,"noerr":0,"initialize":"","finalize":"","x":800,"y":160,"wires":[["ea69b1ea.1a8f3"]]},{"id":"ea69b1ea.1a8f3","type":"castv2-sender","z":"d2196d76.f129b","name":"Google Wohnzimmer","connection":"f71d550e.d9b078","x":1080,"y":160,"wires":[[]],"outputLabels":["msg.payload"]},{"id":"2136b93c.d85f46","type":"delay","z":"d2196d76.f129b","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":580,"y":160,"wires":[["b22138d0.47ba98"]]},{"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":"120","rpcPingTimeout":"60","rpcInitAddress":"127.0.0.1","rpcServerHost":"192.168.178.169","rpcBinPort":"2047","rpcXmlPort":"2048","tls":false,"inSecure":false,"authentication":false,"username":"","password":"","queueTimeout":"5000","queuePause":"350","contextStore":"default"},{"id":"46fbe67a.90cd18","type":"ui_group","name":"Variablen","tab":"36fb2145.947dee","order":1,"disp":true,"width":"6","collapse":false},{"id":"f71d550e.d9b078","type":"castv2-connection","name":"Küche","target":"Küche","host":"192.168.178.70","port":"8009"},{"id":"36fb2145.947dee","type":"ui_tab","name":"Variablen","icon":"dashboard","order":2}]