kopierschnitte / venus.dbus-senec-enfluri

Wrapper for integrating a Senec-managed EnFluRi energy meter into Victron's Venus OS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dbus-senec-enfluri

Integrate an EnFluRi meter, connected to a Senec Home storage system into Victron Energies Venus OS

It can be used in concert with my other script venus.dbus-senec-inverter to fully integrate a Senec Home system into Victron's ecosystem.

Purpose

With the scripts in this repo it should be easy possible to install, uninstall, restart a service that connects the EnFluRi to the VenusOS and GX devices from Victron. Idea is pasend on @RalfZim project linked below.

Inspiration

This project is my first on GitHub and with the Victron Venus OS, so I took some ideas and approaches from the following projects - many thanks for sharing the knowledge:

How it works

My setup

  • Senec Home v3 Duo Hybrid storage system
    • ABB EnFluRi meter, connected to the Senec system using Modbus/RS485
    • 3-Phase installation (normal for Germany)
    • IP 192.168.37.123/24

Details / Process

As mentioned above the script is inspired by @RalfZim fronius smartmeter implementation. So what is the script doing:

  • Running as a service
  • connecting to DBus of the Venus OS com.victronenergy.grid.http_40
  • After successful DBus connection, EnFluRi's readings are accessed via an unsupported/undocumented API of the Senec system (lala.cgi)
  • Serial is taken from the response as device serial
  • Paths are added to the DBus with default value 0 - including some settings like name, etc
  • After that a "loop" is started which polls Senec/EnFluRi data every 1000ms from the REST-API and updates the values in the DBus

Thats it 😄

Install & Configuration

Get the code

Just grap a copy of the main branch and copy them to /data/dbus-senec-enfluri. Edit the config.ini file and fill in the IP of your Senec Home After that call the install.sh script.

Used documentation

About

Wrapper for integrating a Senec-managed EnFluRi energy meter into Victron's Venus OS

License:MIT License


Languages

Language:Python 91.8%Language:Shell 8.2%