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