question

jag avatar image
jag asked

Grid consumption/injection through Modbus or MQTT

I just bought a MultiPlus II, a Cerbo GX and a battery with the objective to charge the battery during off peak hours and use it on peak hours.

I do not have the EM24, but as I'm a Home Assistant user, how can I supply to my Victron the grid consumption / injection through Modbus or MQTT? On the end my idea is to emulate the an EM24 through Home Assistant

Thanks for your support

grid
2 |3000

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

3 Answers
shaneyake avatar image
shaneyake answered ·

This is quite a challenge. Right now there is no way to inject meter data via Modbus or MQTT, you can however inject it onto the D-Bus but it is probably more hassle than it is worth at the moment.


It is currently very easy to change the ESS Grid setpoint via Modbus or MQTT. If the setpoint is negative the inverter will export and if it is positive the inverter will import from AC-IN. If you are going to do high frequency updates, i would use ESS Mode3 and directly command the inverter. You can then just have a simple script that takes your Grid data from home Assistant and then sets the ESS Grid setpoint via Modbus, this will give you the results you are looking for, however the VRM portal will be incorrect.

https://www.victronenergy.com/live/ess:ess_mode_2_and_3

2 |3000

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

jag avatar image
jag answered ·

Thanks @shaneyake , I go to try it

2 |3000

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

jag avatar image
jag answered ·

@shaneyake , the mode ESS in External control and correcting the expected load of MultiPlus via modbus register 37 is working well. Now I go to try to manipulate the D-Bus (any tip where to investigate?) to benefit from the full control features of ESS.

Thanks again :)

3 comments
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 commented ·
All ESS controls are available via modbus. What feature are you trying to use?
0 Likes 0 ·
jag avatar image jag shaneyake commented ·
I would like to emulate my home assistant as an external meter to Victron.
0 Likes 0 ·
techmuc avatar image techmuc jag commented ·

I am working on such a repo right now.. https://github.com/timostark/venus.dbus-iobroker-smartmeter

Here you can emulate a smartmeter from iobroker values. Far from beeing perfect, but it is on the way :)


Note: iobroker is required but with minimal adjustments ofc any rest api can be used..

0 Likes 0 ·