Hi All,
Hopefully a really easy one for someone. Im still a newbe to node red. If I have a mqtt message coming into a flow of a value -200. In the debug window it looks like this.
How do I change the message properties is so that it looks like this below.
This what I have composed so far.
[{"id":"ecfdacce.ba719","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"d11f7e94.99f4","type":"inject","z":"ecfdacce.ba719","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"-200","payloadType":"num","x":530,"y":280,"wires":[["5710bad6.8ddbd4","3672fb61.c48564"]]},{"id":"5710bad6.8ddbd4","type":"debug","z":"ecfdacce.ba719","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":930,"y":280,"wires":[]},{"id":"3672fb61.c48564","type":"change","z":"ecfdacce.ba719","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"value","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":440,"wires":[["5710bad6.8ddbd4"]]}]
Any help would be much appreciated.
Cheers
Gareth