Skip to content

Use Kostal(Plenticore Plus) as a AC coupled PV System in a Victron System over Modbus TCP

License

Notifications You must be signed in to change notification settings

Saharel001/dbus-plenticore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbus-kostal Service (Kostal Plenticore as AC PV)

Purpose

This service is meant to be run on Venus OS from Victron.

The Python script cyclically reads data from the Kostal inverter via the Modbus TCP API and publishes information on the dbus, using the service name com.victronenergy.grid. This makes the Venus OS work as if you had a physical Victron Grid Meter installed.

Configuration

Rename or copy the config.sample.ini in config.ini an change the Parameter in this file.

Pre-condition

Two files from the velib_python:

  • vedbus.py
  • ve_utils.py

The install.sh Script load this files automatically.

Installation

  1. Copy the files to the /data folder on your venus:

    • /data/dbus-kostal/dbus-kostal.py
    • /data/dbus-kostal/install.sh
    • /data/dbus-kostal/uninstall.sh
    • /data/dbus-kostal/restart.sh
    • /data/dbus-kostal/service/run
    • /data/dbus-kostal/config.ini
  2. start install:

    bash /data/dbus-kostal/install.sh

Debugging

You can check the status of the service with svstat:

svstat /service/dbus-kostal

It will show something like this:

/service/dbus-kostal: up (pid 10078) 12 seconds

If the number of seconds is always 0 or 1 or any other small number, it means that the service crashes and gets restarted all the time.

When you think that the script crashes, start it directly from the command line:

python /data/dbus-kostal/dbus-plenticore.py

and see if it throws any error messages.

If the script stops with the message

dbus.exceptions.NameExistsException: Bus name already exists: com.victronenergy.grid"

it means that the service is still running or another service is using that bus name.

Restart the service

If you want to restart the script, for example after changing it, just run the following command:

/data/dbus-kostal/restart.sh

The daemon-tools will restart the scriptwithin a few seconds.

My Hardware

In my installation at home, I am using the following Hardware:

  • Kostal Plenticore 7 and Kostal Smart EnergyMeter G1
  • Victron MultiPlus-II - Battery Inverter (single phase)
  • Cerbo GX - Venus OS 2.93
  • 2x DIY Seplos 280Ah Box - LiFePO Battery

Credits 🙌🏻

This project is build upon the basis of the inspirational work of:

About

Use Kostal(Plenticore Plus) as a AC coupled PV System in a Victron System over Modbus TCP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published