Closed SlapJackNpNp closed 9 months ago
Services mentioned in virtualBatteries are automatically excluded. What are the service names of all your devices (or please attach a screen shot of dbus-spy)?
What exactly is dbus-spy. Do you mean the list of devices shown in the cerbo? Or ist it a command i can execute over ssh?
Command over ssh.
This is what i get with dbus-spy i hope this helps?
I'm not to familiar yet with all the coding, but i guess in this case, i need to
"excludedServices": ["com.victronenergy.battery.ttyS6","com.victronenergy.battery.ttyS7"]
?
You want something like this (I may have the shunts the wrong way round)
{
"virtualBatteries": {
"com.victronenergy.battery.virtual1": ["com.victronenergy.battery.ttyS6", "com.victronenergy.battery.ttyUSB0"],
"com.victronenergy.battery.virtual2": ["com.victronenergy.battery.ttyS7", "com.victronenergy.battery.ttyUSB2"]
}
}
So what exactly will this do? Like my goal is to ignore the smart shunts for the aggregator and only use the dalys. Atm i have 2 packs, each with 1 daly and 1 smart shunt. I want ti get the data and the control from the dalys and use the shunts only to check the consumptions while i monitor the system.
Currently the aggregator uses all 4 so i get each current twice.
So yeah how can i get the aggregator to ignore the shunts and only use the dalys?
Thank you very much
This will combine a shunt with a daly to form a virtual battery - it will take the consumption from the shunt, and fill in any other parameters from the daly so you have the merged combination of the two. So, you'll have a virtual battery for each pack. And the aggregator will just aggregate these two virtual batteries.
Aggregator ---- Virt Batt 1 ---- Shunt
---- Daly
---- Virt Batt 2 ---- Shunt
---- Daly
Oooh that sounds amazing. Gonna test that tomorrow. Thank you very much!
Okay, so i added the command you suggested:
{ "virtualBatteries": { "com.victronenergy.battery.virtual1": ["com.victronenergy.battery.ttyS7", "com.victronenergy.battery.ttyUSB2"], "com.victronenergy.battery.virtual2": ["com.victronenergy.battery.ttyS6", "com.victronenergy.battery.ttyUSB0"] } }
I sorted it, so that the BMS and the shunt fit together. That is the only command i hace in the config.json atm.
The Aggregator still uses 3 Units somehow tho, meaning that the showed values are not correct. Unfortunately i don't know what the 3rd unit is the aggregator is using.
This is what the dbus-spy shows.
Is there btw a way to name the Virtaul Batteries somehow?
Thank you very much again for the help!
Hi, almost the same isssue, can't succed to exclud my shunt from the equation ? I create the file config.json with nano in the folder specified and try many way to try to exclud my shunt, but no cigar!
I would like to see only my two Daly Bms the Battery Aggregator. please advise
Services com.victronenergy.adc com.victronenergy.battery.aggregator Battery Aggregator com.victronenergy.battery.ttyS5 SmartShunt 500A/50mV com.victronenergy.battery.ttyUSB0 SerialBattery(Daly) com.victronenergy.battery.ttyUSB1 SerialBattery(Daly) com.victronenergy.ble com.victronenergy.digitalinput.input01 Haut niveau d eau com.victronenergy.digitalinput.input02 Bilge pump on com.victronenergy.fronius com.victronenergy.logger com.victronenergy.modbusclient.tcp com.victronenergy.packageManager Package Manager com.victronenergy.platform com.victronenergy.qwacs com.victronenergy.settings com.victronenergy.solarcharger.ttyS6 SmartSolar Charger MPPT 100/50 com.victronenergy.system com.victronenergy.tank.adc_builtin0_1 Generic Tank Input com.victronenergy.tank.adc_builtin0_2 Generic Tank Input com.victronenergy.tank.adc_builtin0_3 Generic Tank Input com.victronenergy.tank.adc_builtin0_4 Generic Tank Input com.victronenergy.temperature.adc_builtin0_7 Generic Temperature Input com.victronenergy.temperature.adc_builtin0_8 Generic Temperature Input com.victronenergy.temperature.ruuvi_d6d9450a143f RuuviTag com.victronenergy.temperature.ruuvi_d76471a7ef46 RuuviTag com.victronenergy.temperature.ruuvi_e49b90c9f9b4 RuuviTag com.victronenergy.temperature.ruuvi_f616a54e79c2 RuuviTag com.victronenergy.vebus.ttyS4 MultiPlus 12/3000/120-50 120V
@Marccatamaran So you have one shunt across both batteries? So are you looking to aggregate the two Dalys and then have the result merged with the shunt?
Yes I have my two Daly BMS on 560ah each and after I have my victron shunt! This one totalise whatever I take from the two Daly BMS!
At the end it would good if I drive my voltage with the Battery aggregator and use the SOC from the victron shunt! The Daly BMS have a tendency to drift on the SOC.
Right now if I charge with 100 amps Each Daly show 50 amps that shut show 100 amps and the batteraggregetor show 200 amps.
Le mar. 21 nov. 2023, 10 h 19, pulquero @.***> a écrit :
@Marccatamaran https://github.com/Marccatamaran So you have one shunt across both batteries? So are you looking to aggregate the two Dalys and then have the result merged with the shunt?
— Reply to this email directly, view it on GitHub https://github.com/pulquero/BatteryAggregator/issues/11#issuecomment-1821014273, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5IML7XGVL5FIC2G6H3XYA3YFS2APAVCNFSM6AAAAAAZAMEOH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRGAYTIMRXGM . You are receiving this because you were mentioned.Message ID: @.***>
Currently this is not possible, but I'll see if I can make some changes to allow it.
Can you show how to remove the victron shunt from the equation of the Batteryaggragator?
Yes, for now you can add "excludedServices": ["com.victronenergy.battery.shunt1"],
Hi, I created the file using nano and paste the "excludedServices": ["com.victronenergy.battery.shunt1"], and reboot the Cerbo GX Still have 3 Battery ?
What I do wrong? Thanks in advance for your support!
[ Read 1 line ]
^G Get Help ^O Write Out ^W Where Is ^K Cut Text ^J Justify ^C Cur Pos M-U Undo M-A Mark Text M-] To Bracket M-Q Previous ^B Back ^X Exit ^R Read File ^\ Replace ^U Paste Text ^T To Spell ^_ Go To Line M-E Redo M-6 Copy Text ^Q Where Was M-W Next ^F Forward
If you don't have an existing file then the full contents should be:
{ "excludedServices": ["com.victronenergy.battery.shunt1"] }
See (updated) examples here: https://github.com/pulquero/BatteryAggregator
Ok, it's here, version 2.2. It is now possible to merge shunt data with aggregated data, example config:
{
"auxiliaryServices": ["com.victronenergy.battery.shunt1"]
}
Hello,
first of all, thanks for this tool!
I just set it up with two dalys but i always have the victron smartshunts added to the battery aggregation. My config looks like this:
{ "excludedServices": ["com.victronenergy.battery.shunt1"] } { "virtualBatteries": ["com.victronenergy.battery.virtual1": ["com.victronenergy.battery.shunt1", "com.victronenergy.battery.leastPrecedence"]] }
i tried removing the batteryshunt from the virtualbatteries entry aswell but to no succes. Not sure what i'm doing wrong.
Thank you for your help.![config](https://github.com/pulquero/BatteryAggregator/assets/26175386/be44ca35-d9d6-4660-8630-b24d24b7cc49)