Combine multiple battery sensors into one topic for MQTT for HA integration to Victron Venus

I'm new to Node red using it on the Venus Large app on a pi to monitor several data points on my RV. I've spent about 8 hours trying to figure this out watching multiple tutorials on YouTube and reading the docs and I still can't seem to get the formatting correct. I thought I would start off simple and tackle the battery data first. I have two smart shunts. One for the House batteries and the other for the starter battery. There are multiple sensors built into the Venus node red for the battery monitor that should make this easy. Just looking at the starter battery, this is the result I'm looking for:

msg topic /victron/starter battery/
{
  "time": "2023-03-26 08:13:48",
  "battery": "Starter",
  "volts": 12.2,
  "amps": -2.1,
  "soc": 96.8976543,
  "time to go": 862050.7,
  "charged kwh": 10,
  "mic": "CRC"
}

but I'm getting multiple objects for each sensor rather than the one.

3/26/2023, 11:15:44 AMnode: debug 6
/victron/starter battery/ : msg.payload : string[12]
"{"soc":99.6}"
3/26/2023, 11:15:44 AMnode: debug 6
/victron/starter battery/ : msg.payload : string[12]
"{"kwh":3.26}"
3/26/2023, 11:15:44 AMnode: debug 6
/victron/starter battery/ : msg.payload : string[13]
"{"amps":-0.2}"
3/26/2023, 11:15:44 AMnode: debug 6
/victron/starter battery/ : msg.payload : string[14]
"{"volts":12.2}"
3/26/2023, 11:15:49 AMnode: debug 6
/victron/starter battery/ : msg.payload : string[26]
"{"time to go":863999.9375}"

I am changing the payload to be the sensor name and that's working. I've also got the precision figured out. My goal would be to publish the data every x minutes and that part is setup to work, but the object is not. this is the flow I've been working on.

[{"id":"b5d63f577a3f2ad8","type":"group","z":"b29c1d70151e7b89","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["b3773e11d382b1cb","686ca727084aa659","b1af9ddaa99b30a8","43d700c50a8c53f7","f807814d7e522019","5d02dbdbf18b102b","a64a4de0f71ba826","c5dfeefaaa912132","8460e25cd2d3a625","2db4a219431f2dc5","8b8cfe79b1ea32a3","23bc34f4c5866bd1","049af87dfbb5a94f","b47706ca5be8e8d3","c4f2a04abcfda587","0af1bfad7cb9c596","d808858c3b29ae82","f16d3ce162db1bb8","ba4e5a78705e7609","5297211872c28d41","c2cad21ff759469f","93821f306c1b5684","433ead6c94cfcf5d"],"x":14,"y":-21,"w":1392,"h":382},{"id":"b3773e11d382b1cb","type":"function","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"Time to Go","func":"m=+(msg.payload);\nt=\"/victron/starter battery/\"\nreturn {topic:t,payload:{\"time to go\":m}};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":220,"wires":[["b1af9ddaa99b30a8"]]},{"id":"686ca727084aa659","type":"victron-input-battery","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","service":"com.victronenergy.battery.ttyUSB2","path":"/TimeToGo","serviceObj":{"service":"com.victronenergy.battery.ttyUSB2","name":"Starter Battery","paths":[{"path":"/Alarms/Alarm","type":"enum","name":"Alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighStarterVoltage","type":"enum","name":"High starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowSoc","type":"enum","name":"Low state-of-charge alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowStarterVoltage","type":"enum","name":"Low starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/MidVoltage","type":"enum","name":"Mid-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/ConsumedAmphours","type":"float","name":"Consumed Amphours (Ah)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Dc/0/MidVoltage","type":"float","name":"Mid-point voltage of the battery bank (V)"},{"path":"/Dc/0/MidVoltageDeviation","type":"float","name":"Mid-point deviation of the battery bank (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Dc/0/Voltage","type":"float","name":"Voltage (V)"},{"path":"/Dc/1/Voltage","type":"float","name":"Starter battery voltage (V)"},{"path":"/History/AutomaticSyncs","type":"float","name":"Automatic syncs (count)"},{"path":"/History/AverageDischarge","type":"float","name":"Average discharge (Ah)"},{"path":"/History/ChargeCycles","type":"float","name":"Charge cycles (count)"},{"path":"/History/ChargedEnergy","type":"float","name":"Charged Energy (kWh)"},{"path":"/History/DeepestDischarge","type":"float","name":"Deepest discharge (Ah)"},{"path":"/History/DischargedEnergy","type":"float","name":"Discharged Energy (kWh)"},{"path":"/History/FullDischarges","type":"float","name":"Full discharges (count)"},{"path":"/History/HighStarterVoltageAlarms","type":"float","name":"High starter voltage alarms (count)"},{"path":"/History/HighVoltageAlarms","type":"float","name":"High voltage alarms (count)"},{"path":"/History/LastDischarge","type":"float","name":"Last discharge (Ah)"},{"path":"/History/LowStarterVoltageAlarms","type":"float","name":"Low starter voltage alarms (count)"},{"path":"/History/LowVoltageAlarms","type":"float","name":"Low voltage alarms (count)"},{"path":"/History/MaximumStarterVoltage","type":"float","name":"Maximum starter voltage (V DC)"},{"path":"/History/MaximumVoltage","type":"float","name":"Maximum voltage (V DC)"},{"path":"/History/MinimumStarterVoltage","type":"float","name":"Minimum starter voltage (V DC)"},{"path":"/History/MinimumVoltage","type":"float","name":"Minimum voltage (V DC)"},{"path":"/History/TimeSinceLastFullCharge","type":"float","name":"Time since last full charge (seconds)"},{"path":"/History/TotalAhDrawn","type":"float","name":"Total Ah drawn (Ah)"},{"path":"/Relay/0/State","type":"enum","name":"Relay status","enum":{"0":"Open","1":"Closed"}},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/TimeToGo","type":"float","name":"Time to go (h)"}]},"pathObj":{"path":"/TimeToGo","type":"float","name":"Time to go (h)"},"initial":"","name":"","x":160,"y":220,"wires":[["b3773e11d382b1cb"]]},{"id":"b1af9ddaa99b30a8","type":"json","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"","property":"payload","action":"str","pretty":false,"x":830,"y":220,"wires":[["c5dfeefaaa912132","8460e25cd2d3a625"]]},{"id":"43d700c50a8c53f7","type":"function","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"Volts","func":"m=+(msg.payload.toFixed(1));\nt=\"/victron/starter battery/\"\nreturn {topic:t,payload:{\"volts\":m}};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":40,"wires":[["8b8cfe79b1ea32a3","b1af9ddaa99b30a8"]]},{"id":"f807814d7e522019","type":"function","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"Amps","func":"m=+(msg.payload.toFixed(1));\nt=\"/victron/starter battery/\"\nreturn {topic:t,payload:{\"amps\":m}};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":100,"wires":[["049af87dfbb5a94f","b1af9ddaa99b30a8"]]},{"id":"5d02dbdbf18b102b","type":"function","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"SOC","func":"m=+(msg.payload.toFixed(1));\nt=\"/victron/starter battery/\"\nreturn {topic:t,payload:{\"soc\":m}};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":160,"wires":[["b1af9ddaa99b30a8"]]},{"id":"a64a4de0f71ba826","type":"function","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"Charged KWH","func":"m=+(msg.payload.toFixed(2));\nt=\"/victron/starter battery/\"\nreturn {topic:t,payload:{\"kwh\":m}};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":500,"y":280,"wires":[["b1af9ddaa99b30a8"]]},{"id":"c5dfeefaaa912132","type":"debug","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"debug 6","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1120,"y":40,"wires":[]},{"id":"8460e25cd2d3a625","type":"function","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"function 1","func":"out=context.data || {}\nnode.log(\"start\" + msg.payload);\nnode.log(\"start stored\" + context.data);\ntopic=msg.topic;\nnode.log(topic);\n\nif (msg.payload==\"send\")\n{\n    msg.payload=context.data;\n    msg.out=\"Send data to \"+out.starter;\n    msg.topic=\"victron/starter battery/\";\n    // context.data=null;\n    return [msg];\n}\n\nelse\n{\n    out[topic]=msg.payload\n    context.data=out;\n    node.log(\"stored\" + context.data);\n    return null;\n}\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1000,"y":240,"wires":[["d808858c3b29ae82","f16d3ce162db1bb8"]]},{"id":"2db4a219431f2dc5","type":"victron-input-battery","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","service":"com.victronenergy.battery.ttyUSB2","path":"/Dc/0/Voltage","serviceObj":{"service":"com.victronenergy.battery.ttyUSB2","name":"Starter Battery","paths":[{"path":"/Alarms/Alarm","type":"enum","name":"Alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighStarterVoltage","type":"enum","name":"High starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowSoc","type":"enum","name":"Low state-of-charge alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowStarterVoltage","type":"enum","name":"Low starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/MidVoltage","type":"enum","name":"Mid-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/ConsumedAmphours","type":"float","name":"Consumed Amphours (Ah)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Dc/0/MidVoltage","type":"float","name":"Mid-point voltage of the battery bank (V)"},{"path":"/Dc/0/MidVoltageDeviation","type":"float","name":"Mid-point deviation of the battery bank (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Dc/0/Voltage","type":"float","name":"Voltage (V)"},{"path":"/Dc/1/Voltage","type":"float","name":"Starter battery voltage (V)"},{"path":"/History/AutomaticSyncs","type":"float","name":"Automatic syncs (count)"},{"path":"/History/AverageDischarge","type":"float","name":"Average discharge (Ah)"},{"path":"/History/ChargeCycles","type":"float","name":"Charge cycles (count)"},{"path":"/History/ChargedEnergy","type":"float","name":"Charged Energy (kWh)"},{"path":"/History/DeepestDischarge","type":"float","name":"Deepest discharge (Ah)"},{"path":"/History/DischargedEnergy","type":"float","name":"Discharged Energy (kWh)"},{"path":"/History/FullDischarges","type":"float","name":"Full discharges (count)"},{"path":"/History/HighStarterVoltageAlarms","type":"float","name":"High starter voltage alarms (count)"},{"path":"/History/HighVoltageAlarms","type":"float","name":"High voltage alarms (count)"},{"path":"/History/LastDischarge","type":"float","name":"Last discharge (Ah)"},{"path":"/History/LowStarterVoltageAlarms","type":"float","name":"Low starter voltage alarms (count)"},{"path":"/History/LowVoltageAlarms","type":"float","name":"Low voltage alarms (count)"},{"path":"/History/MaximumStarterVoltage","type":"float","name":"Maximum starter voltage (V DC)"},{"path":"/History/MaximumVoltage","type":"float","name":"Maximum voltage (V DC)"},{"path":"/History/MinimumStarterVoltage","type":"float","name":"Minimum starter voltage (V DC)"},{"path":"/History/MinimumVoltage","type":"float","name":"Minimum voltage (V DC)"},{"path":"/History/TimeSinceLastFullCharge","type":"float","name":"Time since last full charge (seconds)"},{"path":"/History/TotalAhDrawn","type":"float","name":"Total Ah drawn (Ah)"},{"path":"/Relay/0/State","type":"enum","name":"Relay status","enum":{"0":"Open","1":"Closed"}},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/TimeToGo","type":"float","name":"Time to go (h)"}]},"pathObj":{"path":"/Dc/0/Voltage","type":"float","name":"Voltage (V)"},"initial":"","name":"","x":160,"y":40,"wires":[["43d700c50a8c53f7","ba4e5a78705e7609"]]},{"id":"8b8cfe79b1ea32a3","type":"debug","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"Volts","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":750,"y":20,"wires":[]},{"id":"23bc34f4c5866bd1","type":"victron-input-battery","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","service":"com.victronenergy.battery.ttyUSB2","path":"/Dc/0/Current","serviceObj":{"service":"com.victronenergy.battery.ttyUSB2","name":"Starter Battery","paths":[{"path":"/Alarms/Alarm","type":"enum","name":"Alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighStarterVoltage","type":"enum","name":"High starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowSoc","type":"enum","name":"Low state-of-charge alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowStarterVoltage","type":"enum","name":"Low starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/MidVoltage","type":"enum","name":"Mid-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/ConsumedAmphours","type":"float","name":"Consumed Amphours (Ah)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Dc/0/MidVoltage","type":"float","name":"Mid-point voltage of the battery bank (V)"},{"path":"/Dc/0/MidVoltageDeviation","type":"float","name":"Mid-point deviation of the battery bank (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Dc/0/Voltage","type":"float","name":"Voltage (V)"},{"path":"/Dc/1/Voltage","type":"float","name":"Starter battery voltage (V)"},{"path":"/History/AutomaticSyncs","type":"float","name":"Automatic syncs (count)"},{"path":"/History/AverageDischarge","type":"float","name":"Average discharge (Ah)"},{"path":"/History/ChargeCycles","type":"float","name":"Charge cycles (count)"},{"path":"/History/ChargedEnergy","type":"float","name":"Charged Energy (kWh)"},{"path":"/History/DeepestDischarge","type":"float","name":"Deepest discharge (Ah)"},{"path":"/History/DischargedEnergy","type":"float","name":"Discharged Energy (kWh)"},{"path":"/History/FullDischarges","type":"float","name":"Full discharges (count)"},{"path":"/History/HighStarterVoltageAlarms","type":"float","name":"High starter voltage alarms (count)"},{"path":"/History/HighVoltageAlarms","type":"float","name":"High voltage alarms (count)"},{"path":"/History/LastDischarge","type":"float","name":"Last discharge (Ah)"},{"path":"/History/LowStarterVoltageAlarms","type":"float","name":"Low starter voltage alarms (count)"},{"path":"/History/LowVoltageAlarms","type":"float","name":"Low voltage alarms (count)"},{"path":"/History/MaximumStarterVoltage","type":"float","name":"Maximum starter voltage (V DC)"},{"path":"/History/MaximumVoltage","type":"float","name":"Maximum voltage (V DC)"},{"path":"/History/MinimumStarterVoltage","type":"float","name":"Minimum starter voltage (V DC)"},{"path":"/History/MinimumVoltage","type":"float","name":"Minimum voltage (V DC)"},{"path":"/History/TimeSinceLastFullCharge","type":"float","name":"Time since last full charge (seconds)"},{"path":"/History/TotalAhDrawn","type":"float","name":"Total Ah drawn (Ah)"},{"path":"/Relay/0/State","type":"enum","name":"Relay status","enum":{"0":"Open","1":"Closed"}},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/TimeToGo","type":"float","name":"Time to go (h)"}]},"pathObj":{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},"initial":"","name":"","x":160,"y":100,"wires":[["f807814d7e522019"]]},{"id":"049af87dfbb5a94f","type":"debug","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"Amps","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":750,"y":80,"wires":[]},{"id":"b47706ca5be8e8d3","type":"victron-input-battery","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","service":"com.victronenergy.battery.ttyUSB2","path":"/Soc","serviceObj":{"service":"com.victronenergy.battery.ttyUSB2","name":"Starter Battery","paths":[{"path":"/Alarms/Alarm","type":"enum","name":"Alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighStarterVoltage","type":"enum","name":"High starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowSoc","type":"enum","name":"Low state-of-charge alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowStarterVoltage","type":"enum","name":"Low starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/MidVoltage","type":"enum","name":"Mid-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/ConsumedAmphours","type":"float","name":"Consumed Amphours (Ah)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Dc/0/MidVoltage","type":"float","name":"Mid-point voltage of the battery bank (V)"},{"path":"/Dc/0/MidVoltageDeviation","type":"float","name":"Mid-point deviation of the battery bank (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Dc/0/Voltage","type":"float","name":"Voltage (V)"},{"path":"/Dc/1/Voltage","type":"float","name":"Starter battery voltage (V)"},{"path":"/History/AutomaticSyncs","type":"float","name":"Automatic syncs (count)"},{"path":"/History/AverageDischarge","type":"float","name":"Average discharge (Ah)"},{"path":"/History/ChargeCycles","type":"float","name":"Charge cycles (count)"},{"path":"/History/ChargedEnergy","type":"float","name":"Charged Energy (kWh)"},{"path":"/History/DeepestDischarge","type":"float","name":"Deepest discharge (Ah)"},{"path":"/History/DischargedEnergy","type":"float","name":"Discharged Energy (kWh)"},{"path":"/History/FullDischarges","type":"float","name":"Full discharges (count)"},{"path":"/History/HighStarterVoltageAlarms","type":"float","name":"High starter voltage alarms (count)"},{"path":"/History/HighVoltageAlarms","type":"float","name":"High voltage alarms (count)"},{"path":"/History/LastDischarge","type":"float","name":"Last discharge (Ah)"},{"path":"/History/LowStarterVoltageAlarms","type":"float","name":"Low starter voltage alarms (count)"},{"path":"/History/LowVoltageAlarms","type":"float","name":"Low voltage alarms (count)"},{"path":"/History/MaximumStarterVoltage","type":"float","name":"Maximum starter voltage (V DC)"},{"path":"/History/MaximumVoltage","type":"float","name":"Maximum voltage (V DC)"},{"path":"/History/MinimumStarterVoltage","type":"float","name":"Minimum starter voltage (V DC)"},{"path":"/History/MinimumVoltage","type":"float","name":"Minimum voltage (V DC)"},{"path":"/History/TimeSinceLastFullCharge","type":"float","name":"Time since last full charge (seconds)"},{"path":"/History/TotalAhDrawn","type":"float","name":"Total Ah drawn (Ah)"},{"path":"/Relay/0/State","type":"enum","name":"Relay status","enum":{"0":"Open","1":"Closed"}},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/TimeToGo","type":"float","name":"Time to go (h)"}]},"pathObj":{"path":"/Soc","type":"float","name":"State of charge (%)"},"initial":"","name":"","x":180,"y":160,"wires":[["5d02dbdbf18b102b"]]},{"id":"c4f2a04abcfda587","type":"victron-input-battery","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","service":"com.victronenergy.battery.ttyUSB2","path":"/History/ChargedEnergy","serviceObj":{"service":"com.victronenergy.battery.ttyUSB2","name":"Starter Battery","paths":[{"path":"/Alarms/Alarm","type":"enum","name":"Alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighStarterVoltage","type":"enum","name":"High starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowSoc","type":"enum","name":"Low state-of-charge alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowStarterVoltage","type":"enum","name":"Low starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/MidVoltage","type":"enum","name":"Mid-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/ConsumedAmphours","type":"float","name":"Consumed Amphours (Ah)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Dc/0/MidVoltage","type":"float","name":"Mid-point voltage of the battery bank (V)"},{"path":"/Dc/0/MidVoltageDeviation","type":"float","name":"Mid-point deviation of the battery bank (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Dc/0/Voltage","type":"float","name":"Voltage (V)"},{"path":"/Dc/1/Voltage","type":"float","name":"Starter battery voltage (V)"},{"path":"/History/AutomaticSyncs","type":"float","name":"Automatic syncs (count)"},{"path":"/History/AverageDischarge","type":"float","name":"Average discharge (Ah)"},{"path":"/History/ChargeCycles","type":"float","name":"Charge cycles (count)"},{"path":"/History/ChargedEnergy","type":"float","name":"Charged Energy (kWh)"},{"path":"/History/DeepestDischarge","type":"float","name":"Deepest discharge (Ah)"},{"path":"/History/DischargedEnergy","type":"float","name":"Discharged Energy (kWh)"},{"path":"/History/FullDischarges","type":"float","name":"Full discharges (count)"},{"path":"/History/HighStarterVoltageAlarms","type":"float","name":"High starter voltage alarms (count)"},{"path":"/History/HighVoltageAlarms","type":"float","name":"High voltage alarms (count)"},{"path":"/History/LastDischarge","type":"float","name":"Last discharge (Ah)"},{"path":"/History/LowStarterVoltageAlarms","type":"float","name":"Low starter voltage alarms (count)"},{"path":"/History/LowVoltageAlarms","type":"float","name":"Low voltage alarms (count)"},{"path":"/History/MaximumStarterVoltage","type":"float","name":"Maximum starter voltage (V DC)"},{"path":"/History/MaximumVoltage","type":"float","name":"Maximum voltage (V DC)"},{"path":"/History/MinimumStarterVoltage","type":"float","name":"Minimum starter voltage (V DC)"},{"path":"/History/MinimumVoltage","type":"float","name":"Minimum voltage (V DC)"},{"path":"/History/TimeSinceLastFullCharge","type":"float","name":"Time since last full charge (seconds)"},{"path":"/History/TotalAhDrawn","type":"float","name":"Total Ah drawn (Ah)"},{"path":"/Relay/0/State","type":"enum","name":"Relay status","enum":{"0":"Open","1":"Closed"}},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/TimeToGo","type":"float","name":"Time to go (h)"}]},"pathObj":{"path":"/History/ChargedEnergy","type":"float","name":"Charged Energy (kWh)"},"initial":"","name":"","x":190,"y":280,"wires":[["a64a4de0f71ba826"]]},{"id":"0af1bfad7cb9c596","type":"inject","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"","props":[{"p":"topic","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"/victron/starter battery","payload":"send","payloadType":"str","x":490,"y":320,"wires":[["8460e25cd2d3a625"]]},{"id":"d808858c3b29ae82","type":"json","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"","property":"payload","action":"str","pretty":false,"x":1210,"y":240,"wires":[["5297211872c28d41"]]},{"id":"f16d3ce162db1bb8","type":"debug","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"debug 5","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":900,"y":320,"wires":[]},{"id":"ba4e5a78705e7609","type":"debug","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"debug 3","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":360,"y":60,"wires":[]},{"id":"5297211872c28d41","type":"debug","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"debug 4","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1120,"y":320,"wires":[]},{"id":"c2cad21ff759469f","type":"batch","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"","mode":"count","count":"5","overlap":0,"interval":10,"allowEmptySequence":false,"topics":[],"x":830,"y":160,"wires":[["93821f306c1b5684"]]},{"id":"93821f306c1b5684","type":"join","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":1090,"y":160,"wires":[["433ead6c94cfcf5d"]]},{"id":"433ead6c94cfcf5d","type":"mqtt out","z":"b29c1d70151e7b89","g":"b5d63f577a3f2ad8","name":"","topic":"victron/starter battery/","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"a9d83b5ce0bd05ef","x":1280,"y":160,"wires":[]},{"id":"a9d83b5ce0bd05ef","type":"mqtt-broker","name":"","broker":"192.168.9.20","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]

I'm not sure if I'm over thinking this or what's going on. Home assistant mqtt.yaml is looking for the sensor parts in the single message.

  - name: "Starter Battery Volts"
    state_topic: "victron/starter battery/"
    unit_of_measurements: "V"
    Value_template "{{ value_jason.volts }}"
    force_update: true

First set the mqtt out node to auto detect Scratch that I see you are using Victron nodes, not used myself. In that case just add a json node, then payload will be an object.
Then split the object to create a topic and payload, follow that by a join, set to manual, key/object. You set the count in the join to the number of incoming messages.
The result should be a payload object containing all your sensor readings.
Here is a simple example with just 2 readings.

[{"id":"84f9e18295eb0295","type":"mqtt in","z":"65617ffeb779f51c","name":"","topic":"victron/starter battery","qos":"2","datatype":"utf8","broker":"e8ba3ef5.22f4a8","nl":false,"rap":true,"rh":0,"inputs":0,"x":120,"y":4300,"wires":[["4f5607e094a40b4d"]]},{"id":"4f5607e094a40b4d","type":"json","z":"65617ffeb779f51c","name":"","property":"payload","action":"","pretty":false,"x":310,"y":4300,"wires":[["423f8ab71c9b538c"]]},{"id":"423f8ab71c9b538c","type":"split","z":"65617ffeb779f51c","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"topic","x":450,"y":4300,"wires":[["0ebf5a502cf38343"]]},{"id":"0ebf5a502cf38343","type":"join","z":"65617ffeb779f51c","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":570,"y":4300,"wires":[["9c1111190b067847"]]},{"id":"9c1111190b067847","type":"change","z":"65617ffeb779f51c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t  \"time\": $moment().format(\"YYYY-MM-DD HH:mm:ss\"),\t  \"battery\": \"Starter\",\t  \"volts\": $$.payload.volts,\t  \"amps\": $$.payload.amps,\t  \"soc\": $$.payload.soc,\t  \"time to go\": $$.payload[\"time to go\"],\t  \"charged kwh\": $$.payload.kwh,\t  \"mic\": \"CRC\"\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":4340,"wires":[["31a7d45ca40cd85a"]]},{"id":"31a7d45ca40cd85a","type":"debug","z":"65617ffeb779f51c","name":"debug 252","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":710,"y":4300,"wires":[]},{"id":"8a27223890888fe2","type":"inject","z":"65617ffeb779f51c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"victron/starter battery","payload":"{\"soc\":99.6}","payloadType":"str","x":250,"y":4360,"wires":[["a7c385c3a8417dad"]]},{"id":"81ebc47d08a31e28","type":"inject","z":"65617ffeb779f51c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"victron/starter battery","payload":"{\"volts\":99.6}","payloadType":"str","x":250,"y":4400,"wires":[["a7c385c3a8417dad"]]},{"id":"a7c385c3a8417dad","type":"mqtt out","z":"65617ffeb779f51c","name":"","topic":"","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"e8ba3ef5.22f4a8","x":550,"y":4380,"wires":[]},{"id":"e8ba3ef5.22f4a8","type":"mqtt-broker","name":"testb","broker":"192.168.1.25","port":"1883","clientid":"node-red-test","autoConnect":true,"usetls":false,"compatmode":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]

You can also set the precision in the Change node JSONata expression

p.s. I noticed your topics start and end with / this is not best practice for topic names, best to avoid spaces to.

I was making some changes before I received your response. I changed the topics as suggested but I had to create a topic for each sensor to get the "trigger" function to work properly.

[{"id":"2db4a219431f2dc5","type":"victron-input-battery","z":"b29c1d70151e7b89","service":"com.victronenergy.battery.ttyUSB2","path":"/Dc/0/Voltage","serviceObj":{"service":"com.victronenergy.battery.ttyUSB2","name":"Starter Battery","paths":[{"path":"/Alarms/Alarm","type":"enum","name":"Alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighStarterVoltage","type":"enum","name":"High starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowSoc","type":"enum","name":"Low state-of-charge alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowStarterVoltage","type":"enum","name":"Low starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/MidVoltage","type":"enum","name":"Mid-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/ConsumedAmphours","type":"float","name":"Consumed Amphours (Ah)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Dc/0/MidVoltage","type":"float","name":"Mid-point voltage of the battery bank (V)"},{"path":"/Dc/0/MidVoltageDeviation","type":"float","name":"Mid-point deviation of the battery bank (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Dc/0/Voltage","type":"float","name":"Voltage (V)"},{"path":"/Dc/1/Voltage","type":"float","name":"Starter battery voltage (V)"},{"path":"/History/AutomaticSyncs","type":"float","name":"Automatic syncs (count)"},{"path":"/History/AverageDischarge","type":"float","name":"Average discharge (Ah)"},{"path":"/History/ChargeCycles","type":"float","name":"Charge cycles (count)"},{"path":"/History/ChargedEnergy","type":"float","name":"Charged Energy (kWh)"},{"path":"/History/DeepestDischarge","type":"float","name":"Deepest discharge (Ah)"},{"path":"/History/DischargedEnergy","type":"float","name":"Discharged Energy (kWh)"},{"path":"/History/FullDischarges","type":"float","name":"Full discharges (count)"},{"path":"/History/HighStarterVoltageAlarms","type":"float","name":"High starter voltage alarms (count)"},{"path":"/History/HighVoltageAlarms","type":"float","name":"High voltage alarms (count)"},{"path":"/History/LastDischarge","type":"float","name":"Last discharge (Ah)"},{"path":"/History/LowStarterVoltageAlarms","type":"float","name":"Low starter voltage alarms (count)"},{"path":"/History/LowVoltageAlarms","type":"float","name":"Low voltage alarms (count)"},{"path":"/History/MaximumStarterVoltage","type":"float","name":"Maximum starter voltage (V DC)"},{"path":"/History/MaximumVoltage","type":"float","name":"Maximum voltage (V DC)"},{"path":"/History/MinimumStarterVoltage","type":"float","name":"Minimum starter voltage (V DC)"},{"path":"/History/MinimumVoltage","type":"float","name":"Minimum voltage (V DC)"},{"path":"/History/TimeSinceLastFullCharge","type":"float","name":"Time since last full charge (seconds)"},{"path":"/History/TotalAhDrawn","type":"float","name":"Total Ah drawn (Ah)"},{"path":"/Relay/0/State","type":"enum","name":"Relay status","enum":{"0":"Open","1":"Closed"}},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/TimeToGo","type":"float","name":"Time to go (h)"}]},"pathObj":{"path":"/Dc/0/Voltage","type":"float","name":"Voltage (V)"},"initial":"","name":"","x":160,"y":40,"wires":[["43d700c50a8c53f7","ba4e5a78705e7609"]]},{"id":"23bc34f4c5866bd1","type":"victron-input-battery","z":"b29c1d70151e7b89","service":"com.victronenergy.battery.ttyUSB2","path":"/Dc/0/Current","serviceObj":{"service":"com.victronenergy.battery.ttyUSB2","name":"Starter Battery","paths":[{"path":"/Alarms/Alarm","type":"enum","name":"Alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighStarterVoltage","type":"enum","name":"High starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowSoc","type":"enum","name":"Low state-of-charge alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowStarterVoltage","type":"enum","name":"Low starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/MidVoltage","type":"enum","name":"Mid-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/ConsumedAmphours","type":"float","name":"Consumed Amphours (Ah)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Dc/0/MidVoltage","type":"float","name":"Mid-point voltage of the battery bank (V)"},{"path":"/Dc/0/MidVoltageDeviation","type":"float","name":"Mid-point deviation of the battery bank (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Dc/0/Voltage","type":"float","name":"Voltage (V)"},{"path":"/Dc/1/Voltage","type":"float","name":"Starter battery voltage (V)"},{"path":"/History/AutomaticSyncs","type":"float","name":"Automatic syncs (count)"},{"path":"/History/AverageDischarge","type":"float","name":"Average discharge (Ah)"},{"path":"/History/ChargeCycles","type":"float","name":"Charge cycles (count)"},{"path":"/History/ChargedEnergy","type":"float","name":"Charged Energy (kWh)"},{"path":"/History/DeepestDischarge","type":"float","name":"Deepest discharge (Ah)"},{"path":"/History/DischargedEnergy","type":"float","name":"Discharged Energy (kWh)"},{"path":"/History/FullDischarges","type":"float","name":"Full discharges (count)"},{"path":"/History/HighStarterVoltageAlarms","type":"float","name":"High starter voltage alarms (count)"},{"path":"/History/HighVoltageAlarms","type":"float","name":"High voltage alarms (count)"},{"path":"/History/LastDischarge","type":"float","name":"Last discharge (Ah)"},{"path":"/History/LowStarterVoltageAlarms","type":"float","name":"Low starter voltage alarms (count)"},{"path":"/History/LowVoltageAlarms","type":"float","name":"Low voltage alarms (count)"},{"path":"/History/MaximumStarterVoltage","type":"float","name":"Maximum starter voltage (V DC)"},{"path":"/History/MaximumVoltage","type":"float","name":"Maximum voltage (V DC)"},{"path":"/History/MinimumStarterVoltage","type":"float","name":"Minimum starter voltage (V DC)"},{"path":"/History/MinimumVoltage","type":"float","name":"Minimum voltage (V DC)"},{"path":"/History/TimeSinceLastFullCharge","type":"float","name":"Time since last full charge (seconds)"},{"path":"/History/TotalAhDrawn","type":"float","name":"Total Ah drawn (Ah)"},{"path":"/Relay/0/State","type":"enum","name":"Relay status","enum":{"0":"Open","1":"Closed"}},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/TimeToGo","type":"float","name":"Time to go (h)"}]},"pathObj":{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},"initial":"","name":"","x":160,"y":100,"wires":[["f807814d7e522019"]]},{"id":"b47706ca5be8e8d3","type":"victron-input-battery","z":"b29c1d70151e7b89","service":"com.victronenergy.battery.ttyUSB2","path":"/Soc","serviceObj":{"service":"com.victronenergy.battery.ttyUSB2","name":"Starter Battery","paths":[{"path":"/Alarms/Alarm","type":"enum","name":"Alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighStarterVoltage","type":"enum","name":"High starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowSoc","type":"enum","name":"Low state-of-charge alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowStarterVoltage","type":"enum","name":"Low starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/MidVoltage","type":"enum","name":"Mid-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/ConsumedAmphours","type":"float","name":"Consumed Amphours (Ah)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Dc/0/MidVoltage","type":"float","name":"Mid-point voltage of the battery bank (V)"},{"path":"/Dc/0/MidVoltageDeviation","type":"float","name":"Mid-point deviation of the battery bank (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Dc/0/Voltage","type":"float","name":"Voltage (V)"},{"path":"/Dc/1/Voltage","type":"float","name":"Starter battery voltage (V)"},{"path":"/History/AutomaticSyncs","type":"float","name":"Automatic syncs (count)"},{"path":"/History/AverageDischarge","type":"float","name":"Average discharge (Ah)"},{"path":"/History/ChargeCycles","type":"float","name":"Charge cycles (count)"},{"path":"/History/ChargedEnergy","type":"float","name":"Charged Energy (kWh)"},{"path":"/History/DeepestDischarge","type":"float","name":"Deepest discharge (Ah)"},{"path":"/History/DischargedEnergy","type":"float","name":"Discharged Energy (kWh)"},{"path":"/History/FullDischarges","type":"float","name":"Full discharges (count)"},{"path":"/History/HighStarterVoltageAlarms","type":"float","name":"High starter voltage alarms (count)"},{"path":"/History/HighVoltageAlarms","type":"float","name":"High voltage alarms (count)"},{"path":"/History/LastDischarge","type":"float","name":"Last discharge (Ah)"},{"path":"/History/LowStarterVoltageAlarms","type":"float","name":"Low starter voltage alarms (count)"},{"path":"/History/LowVoltageAlarms","type":"float","name":"Low voltage alarms (count)"},{"path":"/History/MaximumStarterVoltage","type":"float","name":"Maximum starter voltage (V DC)"},{"path":"/History/MaximumVoltage","type":"float","name":"Maximum voltage (V DC)"},{"path":"/History/MinimumStarterVoltage","type":"float","name":"Minimum starter voltage (V DC)"},{"path":"/History/MinimumVoltage","type":"float","name":"Minimum voltage (V DC)"},{"path":"/History/TimeSinceLastFullCharge","type":"float","name":"Time since last full charge (seconds)"},{"path":"/History/TotalAhDrawn","type":"float","name":"Total Ah drawn (Ah)"},{"path":"/Relay/0/State","type":"enum","name":"Relay status","enum":{"0":"Open","1":"Closed"}},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/TimeToGo","type":"float","name":"Time to go (h)"}]},"pathObj":{"path":"/Soc","type":"float","name":"State of charge (%)"},"initial":"","name":"","x":180,"y":160,"wires":[["5d02dbdbf18b102b"]]},{"id":"686ca727084aa659","type":"victron-input-battery","z":"b29c1d70151e7b89","service":"com.victronenergy.battery.ttyUSB2","path":"/TimeToGo","serviceObj":{"service":"com.victronenergy.battery.ttyUSB2","name":"Starter Battery","paths":[{"path":"/Alarms/Alarm","type":"enum","name":"Alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighStarterVoltage","type":"enum","name":"High starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowSoc","type":"enum","name":"Low state-of-charge alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowStarterVoltage","type":"enum","name":"Low starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/MidVoltage","type":"enum","name":"Mid-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/ConsumedAmphours","type":"float","name":"Consumed Amphours (Ah)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Dc/0/MidVoltage","type":"float","name":"Mid-point voltage of the battery bank (V)"},{"path":"/Dc/0/MidVoltageDeviation","type":"float","name":"Mid-point deviation of the battery bank (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Dc/0/Voltage","type":"float","name":"Voltage (V)"},{"path":"/Dc/1/Voltage","type":"float","name":"Starter battery voltage (V)"},{"path":"/History/AutomaticSyncs","type":"float","name":"Automatic syncs (count)"},{"path":"/History/AverageDischarge","type":"float","name":"Average discharge (Ah)"},{"path":"/History/ChargeCycles","type":"float","name":"Charge cycles (count)"},{"path":"/History/ChargedEnergy","type":"float","name":"Charged Energy (kWh)"},{"path":"/History/DeepestDischarge","type":"float","name":"Deepest discharge (Ah)"},{"path":"/History/DischargedEnergy","type":"float","name":"Discharged Energy (kWh)"},{"path":"/History/FullDischarges","type":"float","name":"Full discharges (count)"},{"path":"/History/HighStarterVoltageAlarms","type":"float","name":"High starter voltage alarms (count)"},{"path":"/History/HighVoltageAlarms","type":"float","name":"High voltage alarms (count)"},{"path":"/History/LastDischarge","type":"float","name":"Last discharge (Ah)"},{"path":"/History/LowStarterVoltageAlarms","type":"float","name":"Low starter voltage alarms (count)"},{"path":"/History/LowVoltageAlarms","type":"float","name":"Low voltage alarms (count)"},{"path":"/History/MaximumStarterVoltage","type":"float","name":"Maximum starter voltage (V DC)"},{"path":"/History/MaximumVoltage","type":"float","name":"Maximum voltage (V DC)"},{"path":"/History/MinimumStarterVoltage","type":"float","name":"Minimum starter voltage (V DC)"},{"path":"/History/MinimumVoltage","type":"float","name":"Minimum voltage (V DC)"},{"path":"/History/TimeSinceLastFullCharge","type":"float","name":"Time since last full charge (seconds)"},{"path":"/History/TotalAhDrawn","type":"float","name":"Total Ah drawn (Ah)"},{"path":"/Relay/0/State","type":"enum","name":"Relay status","enum":{"0":"Open","1":"Closed"}},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/TimeToGo","type":"float","name":"Time to go (h)"}]},"pathObj":{"path":"/TimeToGo","type":"float","name":"Time to go (h)"},"initial":"","name":"","x":160,"y":220,"wires":[["b3773e11d382b1cb"]]},{"id":"a5417ec6276e10fd","type":"mqtt in","z":"b29c1d70151e7b89","name":"","topic":"victron/starter battery","qos":"2","datatype":"json","broker":"a9d83b5ce0bd05ef","nl":false,"rap":true,"rh":0,"inputs":0,"x":980,"y":380,"wires":[["ea9dad816059b2c6"]]},{"id":"049af87dfbb5a94f","type":"debug","z":"b29c1d70151e7b89","name":"Amps","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":750,"y":80,"wires":[]},{"id":"433ead6c94cfcf5d","type":"mqtt out","z":"b29c1d70151e7b89","name":"","topic":"victron/starter battery","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"a9d83b5ce0bd05ef","x":1380,"y":180,"wires":[]},{"id":"43d700c50a8c53f7","type":"function","z":"b29c1d70151e7b89","name":"Volts","func":"m=+(msg.payload.toFixed(1));\nt=\"/victron/starter battery/volts\"\nreturn {topic:t,payload:{\"volts\":m}};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":40,"wires":[["8b8cfe79b1ea32a3","b1af9ddaa99b30a8"]]},{"id":"f807814d7e522019","type":"function","z":"b29c1d70151e7b89","name":"Amps","func":"m=+(msg.payload.toFixed(1));\nt=\"/victron/starter battery/amps\"\nreturn {topic:t,payload:{\"amps\":m}};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":100,"wires":[["049af87dfbb5a94f","b1af9ddaa99b30a8"]]},{"id":"c4f2a04abcfda587","type":"victron-input-battery","z":"b29c1d70151e7b89","service":"com.victronenergy.battery.ttyUSB2","path":"/History/ChargedEnergy","serviceObj":{"service":"com.victronenergy.battery.ttyUSB2","name":"Starter Battery","paths":[{"path":"/Alarms/Alarm","type":"enum","name":"Alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighStarterVoltage","type":"enum","name":"High starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowSoc","type":"enum","name":"Low state-of-charge alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowStarterVoltage","type":"enum","name":"Low starter-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/MidVoltage","type":"enum","name":"Mid-voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/ConsumedAmphours","type":"float","name":"Consumed Amphours (Ah)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Dc/0/MidVoltage","type":"float","name":"Mid-point voltage of the battery bank (V)"},{"path":"/Dc/0/MidVoltageDeviation","type":"float","name":"Mid-point deviation of the battery bank (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Dc/0/Voltage","type":"float","name":"Voltage (V)"},{"path":"/Dc/1/Voltage","type":"float","name":"Starter battery voltage (V)"},{"path":"/History/AutomaticSyncs","type":"float","name":"Automatic syncs (count)"},{"path":"/History/AverageDischarge","type":"float","name":"Average discharge (Ah)"},{"path":"/History/ChargeCycles","type":"float","name":"Charge cycles (count)"},{"path":"/History/ChargedEnergy","type":"float","name":"Charged Energy (kWh)"},{"path":"/History/DeepestDischarge","type":"float","name":"Deepest discharge (Ah)"},{"path":"/History/DischargedEnergy","type":"float","name":"Discharged Energy (kWh)"},{"path":"/History/FullDischarges","type":"float","name":"Full discharges (count)"},{"path":"/History/HighStarterVoltageAlarms","type":"float","name":"High starter voltage alarms (count)"},{"path":"/History/HighVoltageAlarms","type":"float","name":"High voltage alarms (count)"},{"path":"/History/LastDischarge","type":"float","name":"Last discharge (Ah)"},{"path":"/History/LowStarterVoltageAlarms","type":"float","name":"Low starter voltage alarms (count)"},{"path":"/History/LowVoltageAlarms","type":"float","name":"Low voltage alarms (count)"},{"path":"/History/MaximumStarterVoltage","type":"float","name":"Maximum starter voltage (V DC)"},{"path":"/History/MaximumVoltage","type":"float","name":"Maximum voltage (V DC)"},{"path":"/History/MinimumStarterVoltage","type":"float","name":"Minimum starter voltage (V DC)"},{"path":"/History/MinimumVoltage","type":"float","name":"Minimum voltage (V DC)"},{"path":"/History/TimeSinceLastFullCharge","type":"float","name":"Time since last full charge (seconds)"},{"path":"/History/TotalAhDrawn","type":"float","name":"Total Ah drawn (Ah)"},{"path":"/Relay/0/State","type":"enum","name":"Relay status","enum":{"0":"Open","1":"Closed"}},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/TimeToGo","type":"float","name":"Time to go (h)"}]},"pathObj":{"path":"/History/ChargedEnergy","type":"float","name":"Charged Energy (kWh)"},"initial":"","name":"","x":190,"y":280,"wires":[["a64a4de0f71ba826"]]},{"id":"5d02dbdbf18b102b","type":"function","z":"b29c1d70151e7b89","name":"SOC","func":"m=+(msg.payload.toFixed(1));\nt=\"/victron/starter battery/soc\"\nreturn {topic:t,payload:{\"soc\":m}};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":160,"wires":[["b1af9ddaa99b30a8"]]},{"id":"b3773e11d382b1cb","type":"function","z":"b29c1d70151e7b89","name":"Time to Go","func":"m=+(msg.payload);\nt=\"/victron/starter battery/time to go\"\nreturn {topic:t,payload:{\"time to go\":m}};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":220,"wires":[["b1af9ddaa99b30a8"]]},{"id":"a64a4de0f71ba826","type":"function","z":"b29c1d70151e7b89","name":"Charged KWH","func":"m=+(msg.payload.toFixed(2));\nt=\"/victron/starter battery/charged\"\nreturn {topic:t,payload:{\"kwh\":m}};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":500,"y":280,"wires":[["b1af9ddaa99b30a8"]]},{"id":"8b8cfe79b1ea32a3","type":"debug","z":"b29c1d70151e7b89","name":"Volts","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":750,"y":20,"wires":[]},{"id":"ba4e5a78705e7609","type":"debug","z":"b29c1d70151e7b89","name":"debug 3","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":360,"y":60,"wires":[]},{"id":"d808858c3b29ae82","type":"json","z":"b29c1d70151e7b89","name":"","property":"payload","action":"obj","pretty":false,"x":1170,"y":220,"wires":[["5297211872c28d41","433ead6c94cfcf5d"]]},{"id":"8460e25cd2d3a625","type":"function","z":"b29c1d70151e7b89","name":"Trigger","func":"out=context.data || {}\nnode.log(\"start\" + msg.payload);\nnode.log(\"start stored\" + context.data);\ntopic=msg.topic;\nnode.log(topic);\n\nif (msg.payload==\"send\")\n{\n    msg.payload=context.data;\n    msg.out=\"Send data to \"+out.starter;\n    msg.topic=\"victron/starter battery/\";\n    // context.data=null;\n    return [msg];\n}\n\nelse\n{\n    out[topic]=msg.payload\n    context.data=out;\n    node.log(\"stored\" + context.data);\n    return null;\n}\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1000,"y":220,"wires":[["d808858c3b29ae82","f16d3ce162db1bb8"]]},{"id":"0af1bfad7cb9c596","type":"inject","z":"b29c1d70151e7b89","name":"","props":[{"p":"topic","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"/victron/starter battery","payload":"send","payloadType":"str","x":770,"y":320,"wires":[["8460e25cd2d3a625"]]},{"id":"5297211872c28d41","type":"debug","z":"b29c1d70151e7b89","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1340,"y":240,"wires":[]},{"id":"f16d3ce162db1bb8","type":"debug","z":"b29c1d70151e7b89","name":"debug 5","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1180,"y":280,"wires":[]},{"id":"b1af9ddaa99b30a8","type":"json","z":"b29c1d70151e7b89","name":"","property":"payload","action":"str","pretty":false,"x":830,"y":220,"wires":[["c5dfeefaaa912132","8460e25cd2d3a625"]]},{"id":"c5dfeefaaa912132","type":"debug","z":"b29c1d70151e7b89","name":"debug 6","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1040,"y":40,"wires":[]},{"id":"ea9dad816059b2c6","type":"split","z":"b29c1d70151e7b89","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"topic","x":1170,"y":380,"wires":[["dd8ae7142e22d9f2"]]},{"id":"dd8ae7142e22d9f2","type":"join","z":"b29c1d70151e7b89","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":1290,"y":380,"wires":[["6ca51491fd1e403a"]]},{"id":"6ca51491fd1e403a","type":"change","z":"b29c1d70151e7b89","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t  \"time\": $moment().format(\"YYYY-MM-DD HH:mm:ss\"),\t  \"battery\": \"Starter\",\t  \"volts\": $$.payload.volts,\t  \"amps\": $$.payload.amps,\t  \"soc\": $$.payload.soc,\t  \"time to go\": $$.payload[\"time to go\"],\t  \"charged kwh\": $$.payload.kwh,\t  \"mic\": \"CRC\"\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1460,"y":380,"wires":[["7d3946a26158ba58"]]},{"id":"7d3946a26158ba58","type":"debug","z":"b29c1d70151e7b89","name":"debug 1","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1640,"y":380,"wires":[]},{"id":"a9d83b5ce0bd05ef","type":"mqtt-broker","name":"","broker":"192.168.9.20","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]

However, that put the topic into the MQTT out message (deug 4)

3/26/2023, 1:39:51 PMnode: debug 4
victron/starter battery/ : msg.payload : Object
object
/victron/starter battery/time to go: "{"time to go":863999.9375}"
/victron/starter battery/soc: "{"soc":99.4}"
/victron/starter battery/charged: "{"kwh":3.26}"
/victron/starter battery/amps: "{"amps":-0.2}"
/victron/starter battery/volts: "{"volts":12.1}"

I'm trying to work through the MQTT in you helped with but my change seemed to put a new level into the in message.

3/26/2023, 1:48:32 PMnode: debug 1
/victron/starter battery/soc : msg : Object
object
topic: "/victron/starter battery/soc"
payload: object
time: "2023-03-26 13:48:32"
battery: "Starter"
time to go: object
/victron/starter battery/time to go: "{"time to go":863999.9375}"
/victron/starter battery/soc: "{"soc":99.4}"
mic: "CRC"
qos: 0
retain: false
_msgid: "ae624e31d5d1815b"
3/26/2023, 1:48:32 PMnode: debug 1
/victron/starter battery/amps : msg : Object
object
topic: "/victron/starter battery/amps"
payload: object
time: "2023-03-26 13:48:32"
battery: "Starter"
time to go: object
/victron/starter battery/charged: "{"kwh":3.26}"
/victron/starter battery/amps: "{"amps":-0.2}"
mic: "CRC"
qos: 0
retain: false
_msgid: "9c70ed80f3dd2844"

I think i may have confused you with thee mqtt nodes, initially that's what i thought you were using.

I do not have the Victron node installed so i can only show examples. In this example the injects nodes simulate the victron nodes. I assume their output is in msg.payload.

If you add topics to all the victron nodes, and join as below in this example

[{"id":"81ebc47d08a31e28","type":"inject","z":"65617ffeb779f51c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"12.3456","payloadType":"num","x":220,"y":4060,"wires":[["81187dca5f813799"]]},{"id":"81187dca5f813799","type":"change","z":"65617ffeb779f51c","name":"volts","rules":[{"t":"set","p":"topic","pt":"msg","to":"volts","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":4060,"wires":[["0ebf5a502cf38343"]]},{"id":"0ebf5a502cf38343","type":"join","z":"65617ffeb779f51c","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"5","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":650,"y":4140,"wires":[["9c1111190b067847","087e66e8c3aec2e4"]]},{"id":"3102e5e14244faa3","type":"change","z":"65617ffeb779f51c","name":"soc","rules":[{"t":"set","p":"topic","pt":"msg","to":"soc","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":4140,"wires":[["0ebf5a502cf38343"]]},{"id":"919d3b4b6be3f2f5","type":"change","z":"65617ffeb779f51c","name":"amps","rules":[{"t":"set","p":"topic","pt":"msg","to":"amps","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":4100,"wires":[["0ebf5a502cf38343"]]},{"id":"713fa85e02809236","type":"change","z":"65617ffeb779f51c","name":"kwh","rules":[{"t":"set","p":"topic","pt":"msg","to":"kwh","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":4220,"wires":[["0ebf5a502cf38343"]]},{"id":"202076a6d4219deb","type":"change","z":"65617ffeb779f51c","name":"time to go","rules":[{"t":"set","p":"topic","pt":"msg","to":"time to go","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":4180,"wires":[["0ebf5a502cf38343"]]},{"id":"9c1111190b067847","type":"change","z":"65617ffeb779f51c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t  \"time\": $moment().format(\"YYYY-MM-DD HH:mm:ss\"),\t  \"battery\": \"Starter\",\t  \"volts\": $round($$.payload.volts, 1),\t  \"amps\": $round($$.payload.amps, 1),\t  \"soc\": $$.payload.soc,\t  \"time to go\": $round($$.payload.'time to go',1),\t  \"charged kwh\": $$.payload.kwh,\t  \"mic\": \"CRC\"\t}","tot":"jsonata"},{"t":"set","p":"topic","pt":"msg","to":"/victron/starter battery/","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":4140,"wires":[["31a7d45ca40cd85a"]]},{"id":"087e66e8c3aec2e4","type":"debug","z":"65617ffeb779f51c","name":"debug 253","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":670,"y":4200,"wires":[]},{"id":"8a27223890888fe2","type":"inject","z":"65617ffeb779f51c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"victron/starter battery","payload":"96.8976543","payloadType":"num","x":230,"y":4140,"wires":[["3102e5e14244faa3"]]},{"id":"23357dae93becec6","type":"inject","z":"65617ffeb779f51c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"-2.6","payloadType":"num","x":210,"y":4100,"wires":[["919d3b4b6be3f2f5"]]},{"id":"6ea748a918995b1d","type":"inject","z":"65617ffeb779f51c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"10","payloadType":"num","x":210,"y":4220,"wires":[["713fa85e02809236"]]},{"id":"7ab0b47f4d97b856","type":"inject","z":"65617ffeb779f51c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"87433.1","payloadType":"num","x":220,"y":4180,"wires":[["202076a6d4219deb"]]},{"id":"31a7d45ca40cd85a","type":"debug","z":"65617ffeb779f51c","name":"debug 252","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":990,"y":4140,"wires":[]}]

You put together a way more efficient flow!


The flows are working great. I added a trigger node and increased the message count to trigger it every 10 seconds. I'm still working out the details on the Home Assistant dashboard but it's working. You've been very helpful. THANK YOU!
Screenshot Capture - 2023-03-26 - 21-18-10

I would not use a trigger, i would set the join to every subsequent message. Then use a delay node set to 1 msg per 10 seconds, and to drop intermediate messages.
e.g.

[{"id":"81ebc47d08a31e28","type":"inject","z":"65617ffeb779f51c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"12.3456","payloadType":"num","x":220,"y":4060,"wires":[["81187dca5f813799"]]},{"id":"81187dca5f813799","type":"change","z":"65617ffeb779f51c","name":"volts","rules":[{"t":"set","p":"topic","pt":"msg","to":"volts","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":4060,"wires":[["0ebf5a502cf38343"]]},{"id":"0ebf5a502cf38343","type":"join","z":"65617ffeb779f51c","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"5","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":510,"y":4140,"wires":[["087e66e8c3aec2e4","7e4674be11b5471c"]]},{"id":"919d3b4b6be3f2f5","type":"change","z":"65617ffeb779f51c","name":"amps","rules":[{"t":"set","p":"topic","pt":"msg","to":"amps","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":4100,"wires":[["0ebf5a502cf38343"]]},{"id":"3102e5e14244faa3","type":"change","z":"65617ffeb779f51c","name":"soc","rules":[{"t":"set","p":"topic","pt":"msg","to":"soc","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":4140,"wires":[["0ebf5a502cf38343"]]},{"id":"202076a6d4219deb","type":"change","z":"65617ffeb779f51c","name":"time to go","rules":[{"t":"set","p":"topic","pt":"msg","to":"time to go","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":4180,"wires":[["0ebf5a502cf38343"]]},{"id":"713fa85e02809236","type":"change","z":"65617ffeb779f51c","name":"kwh","rules":[{"t":"set","p":"topic","pt":"msg","to":"kwh","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":4220,"wires":[["0ebf5a502cf38343"]]},{"id":"087e66e8c3aec2e4","type":"debug","z":"65617ffeb779f51c","name":"debug 253","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":670,"y":4200,"wires":[]},{"id":"7e4674be11b5471c","type":"delay","z":"65617ffeb779f51c","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"outputs":1,"x":660,"y":4140,"wires":[["9c1111190b067847"]]},{"id":"23357dae93becec6","type":"inject","z":"65617ffeb779f51c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"-2.6","payloadType":"num","x":210,"y":4100,"wires":[["919d3b4b6be3f2f5"]]},{"id":"8a27223890888fe2","type":"inject","z":"65617ffeb779f51c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"victron/starter battery","payload":"96.8976543","payloadType":"num","x":230,"y":4140,"wires":[["3102e5e14244faa3"]]},{"id":"7ab0b47f4d97b856","type":"inject","z":"65617ffeb779f51c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"87433.1","payloadType":"num","x":220,"y":4180,"wires":[["202076a6d4219deb"]]},{"id":"6ea748a918995b1d","type":"inject","z":"65617ffeb779f51c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"10","payloadType":"num","x":210,"y":4220,"wires":[["713fa85e02809236"]]},{"id":"9c1111190b067847","type":"change","z":"65617ffeb779f51c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t  \"time\": $moment().format(\"YYYY-MM-DD HH:mm:ss\"),\t  \"battery\": \"Starter\",\t  \"volts\": $round($$.payload.volts, 1),\t  \"amps\": $round($$.payload.amps, 1),\t  \"soc\": $$.payload.soc,\t  \"time to go\": $round($$.payload.'time to go',1),\t  \"charged kwh\": $$.payload.kwh,\t  \"mic\": \"CRC\"\t}","tot":"jsonata"},{"t":"set","p":"topic","pt":"msg","to":"/victron/starter battery/","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":4140,"wires":[["31a7d45ca40cd85a"]]},{"id":"31a7d45ca40cd85a","type":"debug","z":"65617ffeb779f51c","name":"debug 252","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1010,"y":4140,"wires":[]}]

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.