question

kc-au avatar image
kc-au asked

ESS Mode 2/3 via API

I am reading ESS Mode2/3 can be controlled via Modbus. Anyone managed to do it via an API instead of Modbus? I can see VRM has the readonly data, but confirming that I can't set the values via VRM and a local device on the network needs to Modbus in the values over TCP?

ESSModbus TCP
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
solarhack avatar image
solarhack answered ·

I've only accessed these services via MQTT

2 |3000

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

shaneyake avatar image
shaneyake answered ·

I have not tried it but it should be able to control ESS via VRM MQTT.
Look at "Connecting to the Victron MQTT server"

https://github.com/victronenergy/dbus-mqtt

The dbus-mqtt service will then take your MQTT messages and put it on the D-Bus. This is how everything is controlled in a GX.

In theory this should work.

My advice would be to install the large version of the firmware on the GX and then use NodeRed to connect to your own MQTT broker or Poll a webpage for control. You could also then program in what should happen if the connection is lost.
https://www.victronenergy.com/live/venus-os:large

2 |3000

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