pulquero / BatteryAggregator

MIT License
32 stars 8 forks source link

wrong value for InstalledCapacity #29

Closed stixif closed 5 months ago

stixif commented 5 months ago

Hi, for InstalledCapacity i become the wrong value... (only from one Battery) not the sum of both...

stixif commented 5 months ago

Capacity <- is correct

pulquero commented 5 months ago

Check you dont have capacity set in config.json

stixif commented 5 months ago

which config.json??? i do not have this... /data/setupOptions/BatteryAggregator/config.json

pulquero commented 5 months ago

OK, using defaults then. Any errors in the log?

stixif commented 5 months ago

i think no... @4000000065ec8ffa31f6cb5c INFO:main:Starting... @4000000065ec8ffa33996384 INFO:dbusmonitor:===== Search on dbus for services that we will monitor starting... ===== @4000000065ec8ffa33fb4dec INFO:dbusmonitor:===== Search on dbus for services that we will monitor finished ===== @4000000065ec8ffc14b43584 INFO:main:Waiting for batteries (attempt 1 of 30)... @4000000065ec8ffd14b2f91c INFO:main:Waiting for batteries (attempt 2 of 30)... @4000000065ec8ffe14cf993c INFO:main:Waiting for batteries (attempt 3 of 30)... @4000000065ec8ffe14cfb494 INFO:dbusmonitor:Found: com.victronenergy.battery.ttyACM0, scanning and storing items @4000000065ec8fff3428e1e4 INFO:dbusmonitor: com.victronenergy.battery.ttyACM0 has device instance 3 @4000000065ec9000056873ec INFO:main:Waiting for batteries (attempt 4 of 30)... @4000000065ec900005edb14c INFO:root:registered ourselves on D-Bus as com.victronenergy.battery.aggregator @4000000065ec90000ebb2fd4 INFO:main:Registered Battery Aggregator com.victronenergy.battery.aggregator @4000000065ec90001304280c INFO:dbusmonitor:Found: com.victronenergy.battery.ttyACM1, scanning and storing items @4000000065ec90002635e9ec INFO:dbusmonitor: com.victronenergy.battery.ttyACM1 has device instance 1 @4000000065ec8ffa31f6cb5c INFO:main:Starting... @4000000065ec8ffa33996384 INFO:dbusmonitor:===== Search on dbus for services that we will monitor starting... ===== @4000000065ec8ffa33fb4dec INFO:dbusmonitor:===== Search on dbus for services that we will monitor finished ===== @4000000065ec8ffc14b43584 INFO:main:Waiting for batteries (attempt 1 of 30)... @4000000065ec8ffd14b2f91c INFO:main:Waiting for batteries (attempt 2 of 30)... @4000000065ec8ffe14cf993c INFO:main:Waiting for batteries (attempt 3 of 30)... @4000000065ec8ffe14cfb494 INFO:dbusmonitor:Found: com.victronenergy.battery.ttyACM0, scanning and storing items @4000000065ec8fff3428e1e4 INFO:dbusmonitor: com.victronenergy.battery.ttyACM0 has device instance 3 @4000000065ec9000056873ec INFO:main:Waiting for batteries (attempt 4 of 30)... @4000000065ec900005edb14c INFO:root:registered ourselves on D-Bus as com.victronenergy.battery.aggregator @4000000065ec90000ebb2fd4 INFO:main:Registered Battery Aggregator com.victronenergy.battery.aggregator @4000000065ec90001304280c INFO:dbusmonitor:Found: com.victronenergy.battery.ttyACM1, scanning and storing items @4000000065ec90002635e9ec INFO:dbusmonitor: com.victronenergy.battery.ttyACM1 has device instance 1

pulquero commented 5 months ago

This should be fixed now.

stixif commented 5 months ago

thanks a lot!