question

rainerb avatar image
rainerb asked

Readout ESS states #1, #2 via dbus command possible?

Hello,

I would like to readout the ESS states #1 and #2 via dbus commands in my bash script, but I can't find it in the "CCGX-Modbus-TCP-register-list-2.51.xls" (or maybe I look over it).

If #1 is active, my periodical running script shall performe some commands.

Any idea how the exact syntax for a dbus command would be? e.g.

Variable=$(dbus -y com.victronenergy.system ??????????????? GetValue)


Best regards

Rainer


ESSVenus GX - VGX
1583397851999.png (50.0 KiB)
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

2 Answers
Greg avatar image
Greg answered ·

What about SystemState ?


Tip: ssh into CCGX and use dbus-spy tool to easily navigate the dbus tree and peruse whats there.


Greg


1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

rainerb avatar image rainerb commented ·

Hi Greg,

thank you for the information, very nice tool...


Rainer

0 Likes 0 ·
Kevin Windrem avatar image
Kevin Windrem answered ·

I had just come across the dBus paths for the ESS "reason codes".

They are in com.victronenergy.system

/SystemState/LowSoc

/SystemState/BatteryLife

/SystemState/ChargeDisabled

/SystemState/DischargeDisabled

/SystemState/SlowCharge

/SystemState/UserChargeLimited

/SystemState/UserDischargeLimited


for reason codes #1 - #7, respectively



1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

rainerb avatar image rainerb commented ·

Hi Kevin,

thank you for the information. It works as it should.


Regards

Rainer


0 Likes 0 ·