Coder Social home page Coder Social logo

ayasystems / dbus-fronius-smart-meter Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 2.0 305 KB

Integrate Fronius Smart meter into Victron Energies Venus OS

License: GNU General Public License v3.0

Python 91.71% Shell 8.29%
dbus-python fronius-api fronius-inverter venusos victron venusos-de

dbus-fronius-smart-meter's People

Contributors

ayasystems avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

realdognose l0tzi

dbus-fronius-smart-meter's Issues

Freezes when LAN connection is briefly interrupted

EDIT: I'm unable to reproduce my own issue by only unplugging and reconnecting the ethernet cable from the PI. There must be another issue in my LAN.

I noticed that it freezes the last reported value from Fronius SmartMeter after being interrupted from LAN, while other services continue reporting on reconnection (e.g. Fronius Inverter).

Reboot always fixes it.

  • On Raspberry PI 4 with Venus v2.92

No connection issue

Hi,
I'm having trouble connecting to the meter.
Here is the error msg:
root@raspberrypi2:/data/dbus-fronius-smart-meter# python dbus-fronius-smart-meter.py
2023-09-18 17:01:30,775 root ERROR com.victronenergy.grid
2023-09-18 17:01:30,786 root CRITICAL Error at main
Traceback (most recent call last):
File "dbus-fronius-smart-meter.py", line 248, in main
pvac_output = DbusFroniusMeterService(
File "dbus-fronius-smart-meter.py", line 28, in init
self.dbusservice = VeDbusService("{}.http{:02d}".format(servicename, deviceinstance))
File "/opt/victronenergy/dbus-systemcalc-py/ext/velib_python/vedbus.py", line 78, in init
self._dbusname = dbus.service.BusName(servicename, self._dbusconn, do_not_queue=True)
File "/usr/lib/python3.8/site-packages/dbus/service.py", line 144, in new
raise NameExistsException(name)
dbus.exceptions.NameExistsException: Bus name already exists: com.victronenergy.grid.http_40
root@raspberrypi2:/data/dbus-fronius-smart-meter# /data/dbus-fronius-smart-meter/restart.sh
root@raspberrypi2:/data/dbus-fronius-smart-meter# python dbus-fronius-smart-meter.py
2023-09-18 17:03:07,726 root ERROR com.victronenergy.grid
2023-09-18 17:03:08,621 root CRITICAL Error at main
Traceback (most recent call last):
File "dbus-fronius-smart-meter.py", line 248, in main
pvac_output = DbusFroniusMeterService(
File "dbus-fronius-smart-meter.py", line 52, in init
self._dbusservice.add_path('/Serial', self._getFronisSerial())
File "dbus-fronius-smart-meter.py", line 71, in _getFronisSerial
if not meter_data['Body']['Data']['Details']['Serial']:
KeyError: 'Details'
root@raspberrypi2:/data/dbus-fronius-smart-meter#

The host ip, is the Fronius Inverter IP?

config.ini
[DEFAULT]
AccessType = OnPremise
SignOfLifeLog = 1

[ONPREMISE]
Host=192.168.1.105
MeterID = 1
intervalMs = 800
CustomName = VIR1 Fronius Smart Meter
Role = grid
#Role = acload
#Role = genset
#Role = pvinverter

Thanks for the help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.