question

Paul Test avatar image
Paul Test asked

Closed by me

Hello,

thx

Jens


Venus OSModbus TCPmodifications
2 |3000

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

4 Answers
bathnm avatar image
bathnm answered ·

Might be easier to use an assistant on the MultiPlus to ignore AC based on SOC.

You can push a configuration via VRM. You will need to use VE.Config on windows to build the configuration

2 |3000

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

elvis avatar image
elvis answered ·

You could also run the script from a cron job at an interval of your choosing, such as 5 10 or 15 min.

2 |3000

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

Paul Test avatar image
Paul Test answered ·

Hi and thx but I use feed in on-grid.

so I need help with the script pls.

2 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.

bathnm avatar image bathnm commented ·

Hi Paul, Maybe it would be better sharing your broader setup and what you are trying to achieve. There maybe a better solution that writing and maintaining a script. While people can point you in the right direction, you need a fair amount of programming knowledge to actually create and maintain it.


At a high level you will need to access the dbus, to read SOC from the battery, make a decision and then write a predetermined value back to dbus to switch the device on and off.

The dbus path and value you will need to switch the multiples on and off is the /Mode parameter of the com.victronenergy.vebus service.

Some good reading on dbus and VenusOS would be these two links

https://github.com/victronenergy/venus/wiki/dbus-api

https://github.com/victronenergy/venus/wiki/dbus#vebus-systems-multis-quattros-inverters

you may also find some information in here useful as you are sort of writing a driver..

https://github.com/victronenergy/venus/wiki/howto-add-a-driver-to-Venus

You will likely want to make use of the python velib library as it will help with a lot of the dbus interfacing, https://github.com/victronenergy/velib_python. There are two example services included, but nots are how useful they will be.


Maybe look at VenusOS Large and Node Red. This might be an easier way of reading the SOC, making a decision and switching the inverter on and off. Especially if your development skills are lacking.


0 Likes 0 ·
Paul Test avatar image Paul Test bathnm commented ·
Sure if I get some help I‘ll spend some money.


0 Likes 0 ·
elvis avatar image
elvis answered ·

I think you are better off writing your own script.

The script you are using is an example HOW to use Victon ModBusTCP.

Its not intended for the purpose you are trying to achieve.

A big part of what you posted of the script is for a users visual indications and nothing to do with control. :-)

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.

Paul Test avatar image Paul Test commented ·
Yes I know that is a script to show some things.

but for me the easiest way to start.

get the SoC - run

write the register - run

but no knowhow how can I shrink the scrip for do only what I need.

0 Likes 0 ·

Related Resources

Victron Venus OS Open Source intro page

Venus OS GitHub (please do not post to this)

Modbus TCP Basics

Experiments, Modifications and Adaptions. Mods (Modifications) can be made to Victron Software by the Community. Please use the modifications space for enthusiasts who want to push what is possible, without official Victron Support.