Code Monkey home page Code Monkey logo

venus.dbus-fronius-smartmeter's People

Contributors

morphz avatar ralfzim avatar trixing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

venus.dbus-fronius-smartmeter's Issues

TOTAL_ENERGY needed, ist this possible?

Where do i get the sum of all Power?

I did some research, should this be

["Data"]["TOTAL_ENERGY"]["Values"] ?
in the json?
But I'm not shure what is the corresponding DBUS-Path?!?

best regards, Philipp

Syntax Error vedbus.py ?

Hi, installed as per your instructions but the service keeps crashing with the following error:

`root@raspberrypi2:/data# svstat /service/dbus-fronius-smartmeter
/service/dbus-fronius-smartmeter: up (pid 13551) 1 seconds
root@raspberrypi2:/data# python /data/dbus-fronius-smartmeter/dbus-fronius-smartmeter.py

Traceback (most recent call last):
File "/data/dbus-fronius-smartmeter/dbus-fronius-smartmeter.py", line 25, in
from vedbus import VeDbusService
File "/data/dbus-fronius-smartmeter/vedbus.py", line 8

^
SyntaxError: invalid syntax`

Can you help?

Adapt this for Tasmota Smart Meter http api?

Hello,

no issue! Feature request!

I have a smart meter and do read out with IR-Head and Tasmota.
So I can do this
http://192.168.2.237/cm?cmnd=status%2010

and get this

{"StatusSNS":{"Time":"2022-03-09T15:39:52","SML":{"DJ_TPWRIN":1708.94,"DJ_TPWROUT":86.36,"DJ_TPWRCURR":145.30,"Meter_number":"0901454d4800009c86bf"},"ESP32":{"Temperature":53.3},"Verbrauch Tag":"2.96","Verbrauch Monat":"1708.94","Verbrauch Jahr":"1708.94","Einspeisung Tag":"0.16","Zählerstand 0:00Uhr":"1705.98","Zählerstand Monatsanfang":"0.00","Zählerstand Jahrenanfang":"0.00","Kosten dieses Jahr":"501.06","TempUnit":"C"}}

Need only DJ_TPWRCURR
Is it possible to adapt the .py for this?
Regards

scipt stops running an grid meter disappears, password gets lost

Hello,
I have a Fronius Symo Inverter, a Fronius Smartmeter and Multiplus II with a Pylontech battery installed.
The venus.dbus script on the Cerbo-S is running perfectly.

But from time to time (every fifth day or so) the script stops and the battery is not charging.
On VRM the device list, the Grid meter disappears. If a change the ESS to internal meter, it resumes charging.

To fix the issue, I connect with the PuTTY program, but strangely, the Cerbo password gets lost and only after resetting it via the remote console, I am able to log in. The commands "kill_me" and "ln ...." make the grid meter appear again.
Unfortunately, the problem repeats after a while.

Who can help? I appreciate very much and many thanks in advance.

No updates when used with Single Phase meter

Had issues where single phase meter would not work as it would error when trying to retrieve the second phase details.

Amended def _update(self) as follows to zero out said variables for single phase meters:

def _update(self):
URL = "http://x.x.x.x/solar_api/v1/GetMeterRealtimeData.cgi?Scope=Device&DeviceId=0&DataCollection=MeterRealtimeData"
meter_r = requests.get(url = URL)
meter_data = meter_r.json()
MeterModel = meter_data['Body']['Data']['Details']['Model']

if str(MeterModel) == 'Smart Meter 63A-1':
MeterConsumption = meter_data['Body']['Data']['PowerReal_P_Sum']
self._dbusservice['/Ac/Power'] = MeterConsumption # positive: consumption, negative: feed into grid
self._dbusservice['/Ac/L1/Voltage'] = meter_data['Body']['Data']['Voltage_AC_Phase_1']
self._dbusservice['/Ac/L2/Voltage'] = 0
self._dbusservice['/Ac/L3/Voltage'] = 0
self._dbusservice['/Ac/L1/Current'] = meter_data['Body']['Data']['Current_AC_Phase_1']
self._dbusservice['/Ac/L2/Current'] = 0
self._dbusservice['/Ac/L3/Current'] = 0
self._dbusservice['/Ac/L1/Power'] = meter_data['Body']['Data']['PowerReal_P_Phase_1']
self._dbusservice['/Ac/L2/Power'] = 0
self._dbusservice['/Ac/L3/Power'] = 0
self._dbusservice['/Ac/Energy/Forward'] = meter_data['Body']['Data']['EnergyReal_WAC_Sum_Consumed']
self._dbusservice['/Ac/Energy/Reverse'] = meter_data['Body']['Data']['EnergyReal_WAC_Sum_Produced']
else:
MeterConsumption = meter_data['Body']['Data']['PowerReal_P_Sum']
self._dbusservice['/Ac/Power'] = MeterConsumption # positive: consumption, negative: feed into grid
self._dbusservice['/Ac/L1/Voltage'] = meter_data['Body']['Data']['Voltage_AC_Phase_1']
self._dbusservice['/Ac/L2/Voltage'] = meter_data['Body']['Data']['Voltage_AC_Phase_2']
self._dbusservice['/Ac/L3/Voltage'] = meter_data['Body']['Data']['Voltage_AC_Phase_3']
self._dbusservice['/Ac/L1/Current'] = meter_data['Body']['Data']['Current_AC_Phase_1']
self._dbusservice['/Ac/L2/Current'] = meter_data['Body']['Data']['Current_AC_Phase_2']
self._dbusservice['/Ac/L3/Current'] = meter_data['Body']['Data']['Current_AC_Phase_3']
self._dbusservice['/Ac/L1/Power'] = meter_data['Body']['Data']['PowerReal_P_Phase_1']
self._dbusservice['/Ac/L2/Power'] = meter_data['Body']['Data']['PowerReal_P_Phase_2']
self._dbusservice['/Ac/L3/Power'] = meter_data['Body']['Data']['PowerReal_P_Phase_3']
self._dbusservice['/Ac/Energy/Forward'] = meter_data['Body']['Data']['EnergyReal_WAC_Sum_Consumed']
self._dbusservice['/Ac/Energy/Reverse'] = `meter_data['Body']['Data']['EnergyReal_WAC_Sum_Produced']

logging.info("House Consumption: %s" % (MeterConsumption))
return True

Will not be adopted in AC loads

The Fronius Smart Meter appears in the device list, but is not displayed as an AC load. The problem occurs with the Venus OS v2.92

ModuleNotFoundError: No module named 'thread'

Hi there,

I get the following error message

Traceback (most recent call last):
  File "/data/dbus-fronius-smartmeter/dbus-fronius-smartmeter.py", line 16, in <module>
    import thread   # for daemon = True
ModuleNotFoundError: No module named 'thread'

That someone already had the problem on a current VenusOS?

System-Info:
Python 3.8.11
Firmware: v2.82-large-30

Switching to Modbus?

Hi everyone, is there a reason for using the rest api? Modbus TCP seems the faster alternative?

Cerbo GX already reading data from Fronius Symo?

Hi Ralf,

I just setup my multiplus ii with Cerbo GX and realized that the Cerbo is automatically detecting the Fronius Symo already and interpreting its data from the smart gateway automatically. Can you quickly explain what's the difference to your script? It seems to me that the Cerbo is handling the Fronius Data just fine and there's no need for a script?

Thanks
Daniel

Meter not showing as grid in venusOS

Hi @RalfZim,

thanks for sharing this great idea. I'd like to use a very similar approach, but with a modbus meter that is connected to and logged by my home assistant system. In the end it is also a couple of HTTP requests and updating the values on the dbus.

My code (hosted here) is basically running and the values are shown in the device in venusos (running on raspi).
screenshot_meter_in_venusos

Somehow, the meter is not associated with the grid values by venusOS.
screenshot_grid_missing

Also, it doesn't show up in the Energy meters section, though I'm not sure it should...
screenshot_energymeters_empty

Any ideas?

Thanks!!

venus v.2.92 no meter

i use venus v2.92 large on a raspberry pi 2.
is it right that the directory "/data/dbus-iobroker-smartmeter" does not exists?
i created it an do the install.sh but there is no reaction. so i did it again and

root@raspberrypi2:/data/dbus-iobroker-smartmeter# sudo ./install.sh ln: /service/dbus-iobroker-smartmeter/service: File exists

so it seems to be installed, but nothing appears in venus.

root@raspberrypi2:/data/dbus-iobroker-smartmeter# svstat /service/dbus-iobroker-smartmeter /service/dbus-iobroker-smartmeter: up (pid 7704) 0 seconds root@raspberrypi2:/data/dbus-iobroker-smartmeter# python /data/dbus-iobroker-smartmeter/dbus-iobroker-smartmeter.py Traceback (most recent call last): File "/data/dbus-iobroker-smartmeter/dbus-iobroker-smartmeter.py", line 4, in <module> from vedbus import VeDbusService ModuleNotFoundError: No module named 'vedbus' root@raspberrypi2:/data/dbus-iobroker-smartmeter#

Cerbox GX Cache Problem?

Hello everybody,

wo got an Problem with the Cerbo GX, after a few weeks we are not able to change the settings any more. It seems like the cache is running full of logs with the Fronius script. Does anybody else got this problem and is there a possibility to fix this problem?

Kind Regards
Klas

Use this with Cerbo GX?

Hi,

I was wondering if I could run this on a Cerbo GX instead of the Pi? Any disadvantages? I have a pi here but I have also ordered a Cerbo GX. Wondering if I should return the Cerbo... However There's a chance that I'll hook up an MPPT charger in the future to charge the USB2000C directly, so the Cerbo might come in handy?

Best
Daniel

service crashes

Hi, I have installed according to you documentation, but I receive the following message:

root@raspberrypi2:~# svstat /service/dbus-fronius-smartmeter
/service/dbus-fronius-smartmeter: up (pid 5545) 0 seconds

If I start the service manually, it runs without errors or exceptions showing the power consumption ever 1-2 seconds.

any ideas?

Overview diagram doesn't show AC Values

I'm running Venus OS v2.82 with your script. But die overview diagram doesn't show any values vor the AC data. The Smart meter however appears in the Device List with correct data coming from the meter (3-Phase). Furthermore the meter doesn't appear in the list of Smart Meters (Settings -> Energy meters). Is this the correct behaviour?

Maybe it's just because I'm not jet running a Multiplus in my setup?
I'm currently just testing the raspberry what it can handle and replace to place a correct order of components later on.
Current setup is just an MPPT, the Fronius Inverter and your script to get rid of a secondary meter.

SmartMeter type support: Only "63a-3" or "50kA-3" as well?

I have a Fronius smartmeter "50kA-3" an it delivers values with this script. But especially when the Fronius PV-Inverter feeds in, the values differ to the values of solarweb. Any idea? Maybe its the type of SmartMeter?
Thanks!

with venus 2.62 it works quiet well - solarweb is just slow.

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.