Hello
I have a output from a energy meter. I can send it to a mqtt broker. But how do i switch the object info from the meter node to diffrent messageses.
I'm intrested inn the values from:
act_pow_pos:
act_pow_neg:
react_pow_pos:
react_pow_neg:
curr_L1:
curr_L2:
curr_L3:
volt_L1:
volt_L2:
volt_L3:
[{"id":"9ed3dad7.fdea18","type":"serial in","z":"47e4bab9.41def4","name":"","serial":"9fe0bf84.66e9a","x":420,"y":320,"wires":[["d76de71a.2bc9c"]]},{"id":"d76de71a.2bc9c","type":"function","z":"47e4bab9.41def4","name":"Buffer to string","func":"msg.payload = msg.payload.toString('hex');\nreturn msg;","outputs":1,"noerr":0,"x":600,"y":320,"wires":[["ae53b2.06107c5"]]},{"id":"ae53b2.06107c5","type":"AMS Decoder Kamstrup","z":"47e4bab9.41def4","name":"","x":780,"y":320,"wires":[["836416f7.c6bb7","62cbcaee.fee3e4","ab3051ad.d6031"]]},{"id":"836416f7.c6bb7","type":"debug","z":"47e4bab9.41def4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":970,"y":320,"wires":[]},{"id":"2c4461da.c2a49e","type":"json","z":"47e4bab9.41def4","name":"","x":591.5993957519531,"y":482.0909118652344,"wires":[["a4aff834.a95c78"]]},{"id":"7c010d64.bebb94","type":"debug","z":"47e4bab9.41def4","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1190,"y":360,"wires":[]},{"id":"ab3051ad.d6031","type":"switch","z":"47e4bab9.41def4","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"curr_L1","vt":"str"},{"t":"cont","v":"volt_L3","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":950,"y":380,"wires":[["7c010d64.bebb94"],["480a346d.940924"]]},{"id":"480a346d.940924","type":"debug","z":"47e4bab9.41def4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1170,"y":420,"wires":[]},{"id":"9fe0bf84.66e9a","type":"serial-port","z":"","serialport":"/dev/ttyUSB0","serialbaud":"2400","databits":"8","parity":"none","stopbits":"1","waitfor":"","dtr":"none","rts":"none","cts":"none","dsr":"none","newline":"1500","bin":"bin","out":"interbyte","addchar":"","responsetimeout":"10000"}]
Thank you