Hello again, I have added the flow, changed the values in the switch - the IDX numbers have changed, now I have a switch of 450 and the volume is 451 and information from mqtt comes to domoticz / out, but when I connect the debug to the allocator, nothing appears anymore.
Code: Select all
[{"id":"f77f03a8.a65ad8","type":"debug","z":"48da0a04.a25ce4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":490,"y":480,"wires":[]},{"id":"37932263.bc6afe","type":"mqtt in","z":"48da0a04.a25ce4","name":"","topic":"domoticz/out","qos":"2","datatype":"auto","broker":"c94f8201.aac178","x":110,"y":300,"wires":[["4d18aedb.0649d8"]]},{"id":"4d18aedb.0649d8","type":"switch","z":"48da0a04.a25ce4","name":"Filter IDX","property":"payload.idx","propertyType":"msg","rules":[{"t":"eq","v":"450","vt":"num"},{"t":"eq","v":"451","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":320,"y":300,"wires":[["b3dc4b99.007e18"],["8c243742.218078","f77f03a8.a65ad8"]]},{"id":"b3dc4b99.007e18","type":"function","z":"48da0a04.a25ce4","name":"function 1","func":"if (msg.payload.nvalue === 1) {\n msg.payload = \"TV Wake on Lan\";\n return [msg,null]\n}\nelse if (msg.payload.nvalue === 0) {\n msg.payload = \"KEY_POWER\";\n return [null,msg]\n} ","outputs":2,"noerr":0,"initialize":"","finalize":"","x":500,"y":240,"wires":[["15b89c48.5726fc","88827117.7e77d8"],["95cb1284.c6d758","b6eb6b38.c47a88"]]},{"id":"15b89c48.5726fc","type":"debug","z":"48da0a04.a25ce4","d":true,"name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":720,"y":180,"wires":[]},{"id":"95cb1284.c6d758","type":"debug","z":"48da0a04.a25ce4","d":true,"name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":720,"y":220,"wires":[]},{"id":"88827117.7e77d8","type":"wake on lan","z":"48da0a04.a25ce4","mac":"A0:62:FB:1D:B0:99","host":"192.168.1.102","udpport":9,"numpackets":3,"interval":100,"name":"TV Wake on Lan","x":750,"y":120,"wires":[]},{"id":"b6eb6b38.c47a88","type":"mqtt out","z":"48da0a04.a25ce4","name":"Hisense TV","topic":"/remoteapp/tv/remote_service/49:b9:b4:a3:8b:35$vidaa_common/actions/sendkey","qos":"2","retain":"false","broker":"c82dca4e.38cbc","x":730,"y":300,"wires":[]},{"id":"a119150e.67b73","type":"debug","z":"48da0a04.a25ce4","d":true,"name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":720,"y":400,"wires":[]},{"id":"8c243742.218078","type":"function","z":"48da0a04.a25ce4","name":"function 2","func":"switch (msg.payload.svalue1) {\n \n case \"10\":\n msg.payload = \"KEY_UP\";\n break;\n \n case \"20\":\n msg.payload = \"KEY_MUTE\";\n break;\n \n case \"30\":\n msg.payload = \"KEY_DOWN\";\n break;\n \n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":500,"y":360,"wires":[["a119150e.67b73","b6eb6b38.c47a88"]]},{"id":"c94f8201.aac178","type":"mqtt-broker","name":"Serwer-MQTT-Dom","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"c82dca4e.38cbc","type":"mqtt-broker","name":"Hisense TV","broker":"192.168.1.102","port":"36669","tls":"67be0766.8fb1c8","clientid":"861003009000001000000732jkz6qeqb6zkws2zo4im5neorjnv42hde","usetls":true,"compatmode":true,"keepalive":"60","cleansession":false,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"67be0766.8fb1c8","type":"tls-config","name":"","cert":"","key":"","ca":"","certname":"rcm_certchain_pem.cer","keyname":"rcm_pem_privkey.pkcs8","caname":"","servername":"","verifyservercert":false}]
and this is the message that node-red gets from mqtt domoticz with the debug connected to domoticz / out