I have a domoticz system which reads data from a grid meter. Would it be possible to send the data from domoticz with MQTT to Venus OS and create a 'virtual' energy meter.
If possible does someone has an example on how to do this?
This site is now in read-only archive mode. Please move all discussion, and create a new account at the new Victron Community site.
GitHub - victronenergy/dbus-mqtt: Venus OS service mapping the D-Bus on Venus OS to MQTT
Or if not mqtt
GitHub - vikt0rm/dbus-shelly-1pm-pvinverter: Integrate Shelly 1PM into Victron Energies Venus OS as a pv inverter
This is doable, in fact I am going to do the same. I assume looking at your name you have (D)SMR.
The point is that Domoticz shows the "usage" separate from the "delivery". I'm having a DSMR5, so it spits out the whole telegram every second. Telling Domotics to dump this on the mqtt broker is quit some traffic. Not the greatest problem but you must realise this.
I'm thinking to call the Domoticz API and read the "usage" and "return" and present this as one value (usage-return) to the Victron system.
The logic could be done in the Python code on the Victron system. Not too difficult but it takes some time to do.
--Gerard
I also found this project Generic driver for MQTT devices using dbus-mqtt (dbus-mqtt-devices) - Victron Community (victronenergy.com)
I now have it working with node-red on venus os which connects to domoticz through mqtt.
Yeah, there are many such projects. At the moment I have a Shelly EM3 measuring L1 and another PV inverter on AC-in (Enphase) and a little piece of code to use it as an external meter and adding the Enphase PV to the VRM.
In hindsight I think adding Domoticz is not a good idea. It might be better to use a P1 interface to MQTT and from there report to the Victron dbus.
Too many options :-)
Hello, I have an Victron ESS System additional to my LG ESS System, which has an Energy-Meter and I'm logging all the PV/Load/Grid Data to an MQTT Broker.
Now I want the Victron ESS to load the Battery if there is to much Energy and to use the Battery if the LG ESS is empty and there is Energy usage in the home.
Currently I'm doing it with Node-Red and Adjusting the Grid Set Point every 10 sec, but I'm not sure if this is an good idea. Maybe it can harm the inverter if I change it to often?
I thing it will be an good Idea if I just simulate an Energy Meter with the Grid-Values I get from MQTT and let do the Victron itself the job of adjusting himself. What do you think?
And if yes, how to do it? I read already the dbus-mqtt / dbus-flashmq repos but I can't figure out how to do it step by step...
This is what I use for that purpose.
It maps an existing json message to the format you can easily process with the dbus services, and such emulates an energy meter,
https://github.com/marcelrv/victron-dbus-mqttmapper
https://github.com/sebdehne/dbus-mqtt-services
Victron Venus OS Open Source intro page
Venus OS GitHub (please do not post to this)
61 People are following this question.