Here is a simple example in embedded Node Red to obtain vessels.self.tanks.* data. Filter to a specific $source ( YDEN in my case ) then sort the output to freshWater, blackWater and Fuel.
tanks
.* (.*) is subscription key as this says that the server should send all of the paths in the tanks tree.
The $source filter might not be necessary in your installation and could be specified in the 'subscribe' node.
I have the NMEA 2K interface ( YDEN-2 ) set up to append the NMEA ID to the NMEA source field, so the value is not consistent.
Also my Victron Venus exports the tank data over the MQTT channel to the SignalK node as well which gives me 2 entries for each tank.
It may be possible to have the subscription node use a wildcard in the $source field. I have not tried.
Brian
--
[{"id":"6e16d9cf.92db78","type":"signalk-subscribe","z":"ef92c9fa.d7d738","name":"","mode":"sendAll","flatten":true,"context":"vessels.self","path":"tanks.*","source":"","period":1000,"x":220,"y":960,"wires":[["4b550988.702b28"]]},{"id":"f72e1225.bee44","type":"debug","z":"ef92c9fa.d7d738","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":740,"y":920,"wires":[]},{"id":"4b550988.702b28","type":"switch","z":"ef92c9fa.d7d738","name":"$source Filter","property":"$source","propertyType":"msg","rules":[{"t":"cont","v":"YDEN","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":420,"y":960,"wires":[["fe41a112.bd9b1"]]},{"id":"fe41a112.bd9b1","type":"switch","z":"ef92c9fa.d7d738","name":"Tank Sort","property":"topic","propertyType":"msg","rules":[{"t":"cont","v":"freshWater","vt":"str"},{"t":"cont","v":"fuel","vt":"str"},{"t":"cont","v":"blackWater","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":600,"y":960,"wires":[["f72e1225.bee44"],["c5a32ad3.2e6c98"],["219563f.57ca89c"]]},{"id":"c5a32ad3.2e6c98","type":"debug","z":"ef92c9fa.d7d738","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":740,"y":960,"wires":[]},{"id":"219563f.57ca89c","type":"debug","z":"ef92c9fa.d7d738","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":740,"y":1000,"wires":[]}]
--