Been searching and trying for a while but I still do something wrong. I have different values coming from the car once in a while (bluelinky). I need some of the values put to different output nodes. I have made a function node to get the values I want.
var newMsg = { payload: [msg.payload.evStatus.batteryStatus, msg.payload.battery.batSoc, msg.payload.evStatus.drvDistance[0].rangeByFuel.evModeRange.value, msg.payload.evStatus.batteryCharge, msg.payload.doorLock] };
return newMsg;
Then I have used a split node with the settings split using payload and fixed lenght of 1. Then I get separated messages from the split node. But I struggle to use the Switch node to route the messages to the correct debug node. Is it possible to set this up in the switch node as it is? Or do I have to add topic in the function node first?
I will greatly appreciate any suggestions who can help me on the way fixing this.
Best regards
Freddy