Es geht, mega. Danke danke
Mit dem {{{ulr}}} musst du mir aber nochmal erklären. Woher nimmt er den Wert?
Würde das gern bei meinem täglichen Zitat ebenfalls umsetzen.
Code: Alles auswählen
[{"id":"b1cafdc6.34004","type":"tab","label":"Zitat Test","disabled":false,"info":""},{"id":"7820974c.70dd18","type":"delay","z":"b1cafdc6.34004","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":480,"y":160,"wires":[["6e1366fd.3aebb8"]]},{"id":"939c5eb5.59054","type":"delay","z":"b1cafdc6.34004","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":480,"y":220,"wires":[["61563899.4172e8"]]},{"id":"200f7207.693b9e","type":"delay","z":"b1cafdc6.34004","name":"","pauseType":"delay","timeout":"15","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":490,"y":280,"wires":[["2c242a19.ae5146"]]},{"id":"c40338a9.f331b8","type":"inject","z":"b1cafdc6.34004","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"topic","payload":"payload","payloadType":"msg","x":185,"y":269,"wires":[["7820974c.70dd18"]]},{"id":"deb20675.9dcbc8","type":"http in","z":"b1cafdc6.34004","name":"","url":"/zitat","method":"get","upload":false,"swaggerDoc":"","x":240,"y":160,"wires":[["7820974c.70dd18"]]},{"id":"31c60316.7a1b6c","type":"castv2-sender","z":"b1cafdc6.34004","name":"Küche","connection":"f71d550e.d9b078","x":1050,"y":300,"wires":[[]],"outputLabels":["msg.payload"]},{"id":"d97c1595.3b11b8","type":"ccu-sysvar","z":"b1cafdc6.34004","name":"URLVariable_Zitat_AN","ccuConfig":"38263145.35ea0e","topic":"ReGaHSS/${Name}","change":false,"cache":true,"x":240,"y":480,"wires":[["1c2a3bd4.40b4f4"]]},{"id":"9519acfb.b2827","type":"debug","z":"b1cafdc6.34004","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1050,"y":400,"wires":[]},{"id":"7bb17c70.2e14a4","type":"ui_toast","z":"b1cafdc6.34004","position":"top right","displayTime":"3","highlight":"","sendall":true,"outputs":0,"ok":"OK","cancel":"","raw":false,"topic":"","name":"","x":1090,"y":460,"wires":[]},{"id":"8e3552c1.adb4e","type":"ui_button","z":"b1cafdc6.34004","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":830,"y":460,"wires":[["7bb17c70.2e14a4","9519acfb.b2827"]]},{"id":"1c2a3bd4.40b4f4","type":"change","z":"b1cafdc6.34004","name":"","rules":[{"t":"set","p":"URLVariable_Zitat_AN","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":460,"wires":[["8e3552c1.adb4e"]]},{"id":"3c633b5d.bbd344","type":"change","z":"b1cafdc6.34004","name":"Close","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"app\":\"DefaultMediaReceiver\",\"type\":\"CLOSE\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":730,"y":340,"wires":[["31c60316.7a1b6c"]]},{"id":"2c242a19.ae5146","type":"change","z":"b1cafdc6.34004","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":760,"y":280,"wires":[["31c60316.7a1b6c","3c633b5d.bbd344"]]},{"id":"6e1366fd.3aebb8","type":"change","z":"b1cafdc6.34004","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":760,"y":160,"wires":[["939c5eb5.59054"]]},{"id":"61563899.4172e8","type":"template","z":"b1cafdc6.34004","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":730,"y":220,"wires":[["200f7207.693b9e","31c60316.7a1b6c"]]},{"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}]