Integrate ESPHome P1 meter into Victron Energy Venus OS
With the scripts in this repo it should be possible to add the ESPhome P1 meter to VenusOS.
This repo is based on similar projects for shelly and home wizard integration
Just grap a copy of the main branche and copy them to /data/dbus-esphome-p1
.
After that call the install.sh script.
The following script should do everything for you:
wget https://github.com/ajvdw/dbus-esphome-p1/archive/refs/heads/main.zip
unzip main.zip "dbus-esphome-p1-main/*" -d /data
mv /data/dbus-esphome-p1-main /data/dbus-esphome-p1
chmod a+x /data/dbus-esphome-p1/install.sh
/data/dbus-esphome-p1/install.sh
rm main.zip
Within the project there is a file /data/dbus-esphome-p1/config.ini
- just change the values - most important is the host
Section | Config vlaue | Explanation |
---|---|---|
DEFAULT | SignOfLifeLog | Time in minutes how often a status is added to the log-file current.log with log-level INFO |
DEFAULT | CustomName | Name of your device - usefull if you want to run multiple versions of the script |
DEFAULT | DeviceInstance | DeviceInstanceNumber e.g. 40 |
DEFAULT | LogLevel | Define the level of logging - lookup: https://docs.python.org/3/library/logging.html#levels |
DEFAULT | Host | IP or hostname of the ESPHome device |
- https://github.com/victronenergy/venus/wiki/dbus#grid DBus paths for Victron namespace GRID
- https://github.com/victronenergy/venus/wiki/dbus#pv-inverters DBus paths for Victron namespace PVINVERTER
- https://github.com/victronenergy/venus/wiki/dbus-api DBus API from Victron
- https://www.victronenergy.com/live/ccgx:root_access How to get root access on GX device/Venus OS