Hi all,
I have updated my Python 3 code for the BMV battery monitor to add optional CSV logging and also to make it a bit more reliable. It uses a LUA parser to parse the required data to Domoticz (in my case Voltage, Current, Power, SOC, kWHr in, kWHr out and AHr).
It is all running on a Raspberry Pi 3. The BMV is plugged in to the RPi via a Victron serial to USB adapter.
The code is here: https://github.com/ajay10000/victron_bmv
I hope it may be useful for others with the BMV. Feel free to ask if you have any questions.
There are also many good references here: https://www.victronenergy.com/live/open_source:start
Cheers - Andrew
Victron BMV-70x battery monitor update
Moderator: leecollings
-
- Posts: 1
- Joined: Wednesday 03 July 2019 22:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Victron BMV-70x battery monitor update
Hi Andrew,
Hope you can help me, i fail to get it working. Not strange as i am for sure not a specialist....
In the log of domoticz i get the following error:
CLuaHandler: udevices: ERROR:
2019-07-03 22:37:09.899 CLuaHandler: udevices: /home/pi/domoticz/scripts/lua_parsers/ap_bmv.lua:26: attempt to perform arithmetic on global 'val' (a nil value)
2019-07-03 22:37:09.898 Error: CLuaHandler (applyJsonPath from LUA) : Invalid Json data received
Log on the pi with the vedirect.py file reports no errors.
Thanks! JG
Hope you can help me, i fail to get it working. Not strange as i am for sure not a specialist....
In the log of domoticz i get the following error:
CLuaHandler: udevices: ERROR:
2019-07-03 22:37:09.899 CLuaHandler: udevices: /home/pi/domoticz/scripts/lua_parsers/ap_bmv.lua:26: attempt to perform arithmetic on global 'val' (a nil value)
2019-07-03 22:37:09.898 Error: CLuaHandler (applyJsonPath from LUA) : Invalid Json data received
Log on the pi with the vedirect.py file reports no errors.
Thanks! JG
-
- Posts: 72
- Joined: Monday 07 August 2017 15:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Victoria, Australia
- Contact:
Re: Victron BMV-70x battery monitor update
Hi @jortg, sorry I missed your question as I was not subscribed to the topic. I hope you have resolved it by now. I've updated the README on GitHub to provide some more information.
Who is online
Users browsing this forum: No registered users and 1 guest