mit dem {{{ulr}}} verstehe ich nicht ganz, wie bekomme ich diesen in einem anderen Flow mit einer anderen Variable hin? Siehe mein Post über dir
Habs hinbekommen:
Code: Alles auswählen
[{"id":"dec43054.8e28b","type":"tab","label":"Zitat","disabled":false,"info":""},{"id":"83ba2301.ff32a","type":"delay","z":"dec43054.8e28b","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":380,"y":120,"wires":[["b66352ec.c2096"]]},{"id":"d267394.12622c8","type":"delay","z":"dec43054.8e28b","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":380,"y":180,"wires":[["954c5b44.08d8b8"]]},{"id":"b86ddc6e.2b298","type":"delay","z":"dec43054.8e28b","name":"","pauseType":"delay","timeout":"15","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":390,"y":240,"wires":[["eb5e2d57.d5df1"]]},{"id":"995d1c58.94753","type":"inject","z":"dec43054.8e28b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"topic","payload":"payload","payloadType":"msg","x":100,"y":200,"wires":[["83ba2301.ff32a"]]},{"id":"90e43364.18e3a","type":"http in","z":"dec43054.8e28b","name":"","url":"/zitat","method":"get","upload":false,"swaggerDoc":"","x":120,"y":80,"wires":[["83ba2301.ff32a"]]},{"id":"d9bc97a0.31bc28","type":"castv2-sender","z":"dec43054.8e28b","name":"Küche","connection":"f71d550e.d9b078","x":1010,"y":200,"wires":[[]],"outputLabels":["msg.payload"]},{"id":"eb959b45.aea098","type":"ccu-sysvar","z":"dec43054.8e28b","name":"URLVariable_Zitat_AN","ccuConfig":"38263145.35ea0e","topic":"ReGaHSS/${Name}","change":false,"cache":true,"x":160,"y":400,"wires":[["6bbfba53.6b4fa4"]]},{"id":"a3cc7324.27016","type":"debug","z":"dec43054.8e28b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":890,"y":360,"wires":[]},{"id":"f9eca763.70e958","type":"ui_toast","z":"dec43054.8e28b","position":"top right","displayTime":"3","highlight":"","sendall":true,"outputs":0,"ok":"OK","cancel":"","raw":false,"topic":"","name":"","x":930,"y":400,"wires":[]},{"id":"bb38bbc2.754c98","type":"ui_button","z":"dec43054.8e28b","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":710,"y":400,"wires":[["f9eca763.70e958","a3cc7324.27016"]]},{"id":"6bbfba53.6b4fa4","type":"change","z":"dec43054.8e28b","name":"","rules":[{"t":"set","p":"URLVariable_Zitat_AN","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":400,"wires":[["bb38bbc2.754c98"]]},{"id":"2b0129f7.e17f46","type":"change","z":"dec43054.8e28b","name":"Close","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"app\":\"DefaultMediaReceiver\",\"type\":\"CLOSE\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":300,"wires":[["d9bc97a0.31bc28"]]},{"id":"eb5e2d57.d5df1","type":"change","z":"dec43054.8e28b","name":"Volume auf 10","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"app\":\"DefaultMediaReceiver\",\"type\":\"VOLUME\",\"volume\":10}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":240,"wires":[["d9bc97a0.31bc28","2b0129f7.e17f46"]]},{"id":"b66352ec.c2096","type":"change","z":"dec43054.8e28b","name":"Volume auf 40","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"app\":\"DefaultMediaReceiver\",\"type\":\"VOLUME\",\"volume\":40}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":120,"wires":[["d267394.12622c8","d9bc97a0.31bc28"]]},{"id":"99b7d189.7b493","type":"template","z":"dec43054.8e28b","name":"Zitat","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"{\n\"type\": \"MEDIA\",\n\"contentType\": \"audio/vnd.wav\",\n\"streamType\": \"BUFFERED\",\n \"media\": [\n { \"url\": \"{{{ulr}}}\" } \n ]\n}","output":"json","x":770,"y":180,"wires":[["b86ddc6e.2b298","d9bc97a0.31bc28"]]},{"id":"96d48646.4401d8","type":"inject","z":"dec43054.8e28b","name":"hab ich nicht","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"topic","payload":"ulr...","payloadType":"str","x":150,"y":340,"wires":[["eb959b45.aea098"]]},{"id":"954c5b44.08d8b8","type":"change","z":"dec43054.8e28b","name":"","rules":[{"t":"set","p":"ulr","pt":"msg","to":"URLVariable_Zitat_AN","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":180,"wires":[["99b7d189.7b493"]]},{"id":"f71d550e.d9b078","type":"castv2-connection","name":"Küche","target":"Küche","host":"192.168.178.70","port":"8009"},{"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":"36fb2145.947dee","type":"ui_tab","name":"Variablen","icon":"dashboard","order":2}]