GitHub repository: mr-manuel/venus-os_dbus-multiplus-emulator
- Disclaimer
- Supporting/Sponsoring this project
- Purpose
- Config
- Install / Update
- Uninstall
- Restart
- Debugging
- Compatibility
I wrote this script for myself. I'm not responsible, if you damage something using my script.
You like the project and you want to support me?
The script emulates a MultiPlus II in Venus OS. This allows to show the correct values in the overview.
There is nothing specific to configure and it should work out of the box for systems that have only L1
. If you have multiple phases, grid meters and/or batteries, then a configuration is maybe needed. In this case edit the dbus-multiplus-emulator.py
and search for the USER CHANGABLE VALUES | START
section.
In a multi-phase system, the DC loads are distributed based on the combined power from each phase of the grid and PV inverters. To achieve more accurate readings, you need to provide the power going in and out of the charger/inverter on the AC side. You can then use the dbus-mqtt-grid
driver and configure it as an AC load to input these values into the emulator.
AC Loads
value may not exactly match the actual values, because losses are included as part of the load.
-
Login to your Venus OS device via SSH. See Venus OS:Root Access for more details.
-
Execute this commands to download and copy the files:
wget -O /tmp/download_dbus-multiplus-emulator.sh https://raw.githubusercontent.com/mr-manuel/venus-os_dbus-multiplus-emulator/master/download.sh bash /tmp/download_dbus-multiplus-emulator.sh
-
Select the version you want to install.
-
Edit the config file if you have a multi-phase system or if you want to have a custom configuration:
nano /data/etc/dbus-multiplus-emulator-2/config.ini
Otherwise, skip this step.
-
Install the driver as a service:
bash /data/etc/dbus-multiplus-emulator/install.sh
The daemon-tools should start this service automatically within seconds.
Run /data/etc/dbus-multiplus-emulator/uninstall.sh
Run /data/etc/dbus-multiplus-emulator/restart.sh
The service status can be checked with svstat svstat /service/dbus-multiplus-emulator
This will output somethink like /service/dbus-multiplus-emulator: up (pid 5845) 185 seconds
If the seconds are under 5 then the service crashes and gets restarted all the time. If you do not see anything in the logs you can increase the log level in /data/etc/dbus-multiplus-emulator/dbus-multiplus-emulator.py
by changing level=logging.WARNING
to level=logging.INFO
or level=logging.DEBUG
If the script stops with the message dbus.exceptions.NameExistsException: Bus name already exists: com.victronenergy.grid.mqtt_grid"
it means that the service is still running or another service is using that bus name.
This software supports the latest three stable versions of Venus OS. It may also work on older versions, but this is not guaranteed.