Retrieve total amount of energy production

Moderator: leecollings

Post Reply
steef27
Posts: 30
Joined: Friday 26 August 2016 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Retrieve total amount of energy production

Post by steef27 »

Hi guys,

I am using the Solar edge plugin to capture data from my PV system.
So far allright, but I want to display the total amount of kWh from installation date till now.
This amount is visible in the JSON file (Data: "10730.700 kWh") , but not in Domoticz.
Is it possible to extract this "Data" value and put it in another f.e. custom sensor device or counter?
As far as I know you can only use "counter" and "countertoday".
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Retrieve total amount of energy production

Post by waaren »

steef27 wrote: Thursday 23 January 2020 16:37 I am using the Solar edge plugin to capture data from my PV system.
So far allright, but I want to display the total amount of kWh from installation date till now.
This amount is visible in the JSON file (Data: "10730.700 kWh") , but not in Domoticz.
Is it possible to extract this "Data" value and put it in another f.e. custom sensor device or counter?
As far as I know you can only use "counter" and "countertoday".
If you are looking for a dzVents solution then please add a
domoticz.devices('name of your device').dump() somewhere in your script and show the complete log output of that dump. That will enable us to see what type of device this is and how to collect the total to send it to a custom sensor.
You can also have a look at the dzVents wiki so see what other attributes are available.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
steef27
Posts: 30
Joined: Friday 26 August 2016 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Retrieve total amount of energy production

Post by steef27 »

2020-01-27 10:53:00.724 Status: dzVents: > ruleIsAtNight()
2020-01-27 10:53:00.724 Status: dzVents: > hoursAgo: 0
2020-01-27 10:53:00.724 Status: dzVents: > raw: 2020-01-27 10:52:21
2020-01-27 10:53:00.724 Status: dzVents: > isdst: false
2020-01-27 10:53:00.724 Status: dzVents: > switchType: X10 Siren
2020-01-27 10:53:00.724 Status: dzVents: > updateVoltage()
2020-01-27 10:53:00.724 Status: dzVents: > setRGB()
2020-01-27 10:53:00.724 Status: dzVents: > updateRain()
2020-01-27 10:53:00.724 Status: dzVents: > play()
2020-01-27 10:53:00.724 Status: dzVents: > isDevice: true
2020-01-27 10:53:00.724 Status: dzVents: > name: Opgewekte zonne-energie
2020-01-27 10:53:00.724 Status: dzVents: > armHome()
2020-01-27 10:53:00.724 Status: dzVents: > armAway()
2020-01-27 10:53:00.724 Status: dzVents: > updateWetness()
2020-01-27 10:53:00.724 Status: dzVents: > setDiscoMode()
2020-01-27 10:53:00.724 Status: dzVents: > setHotWater()
2020-01-27 10:53:00.724 Status: dzVents: > kodiExecuteAddOn()
2020-01-27 10:53:00.724 Status: dzVents: > setHue()
2020-01-27 10:53:00.725 Status: dzVents: > startPlaylist()
2020-01-27 10:53:00.725 Status: dzVents: > setVolume()
2020-01-27 10:53:00.725 Status: dzVents: > decreaseBrightness()
2020-01-27 10:53:00.725 Status: dzVents: > setNightMode()
2020-01-27 10:53:00.725 Status: dzVents: > hardwareName: SolarEdge PV system
2020-01-27 10:53:00.725 Status: dzVents: > isHTTPResponse: false
2020-01-27 10:53:00.725 Status: dzVents: > changed: false
2020-01-27 10:53:00.725 Status: dzVents: > isSecurity: false
2020-01-27 10:53:00.725 Status: dzVents: > updateHumidity()
2020-01-27 10:53:00.725 Status: dzVents: > idx: 114
2020-01-27 10:53:00.725 Status: dzVents: > timedOut: false
2020-01-27 10:53:00.725 Status: dzVents: > cancelQueuedCommands()
2020-01-27 10:53:00.725 Status: dzVents: > hardwareType: SolarEdge via Web API
2020-01-27 10:53:00.725 Status: dzVents: > _nValue: 0
2020-01-27 10:53:00.725 Status: dzVents: > isScene: false
2020-01-27 10:53:00.725 Status: dzVents: > usage: 195
2020-01-27 10:53:00.725 Status: dzVents: > updateVisibility()
2020-01-27 10:53:00.725 Status: dzVents: > updateAlertSensor()
2020-01-27 10:53:00.725 Status: dzVents: > stop()
2020-01-27 10:53:00.725 Status: dzVents: > isTimer: false
2020-01-27 10:53:00.725 Status: dzVents: > volumeDown()
2020-01-27 10:53:00.726 Status: dzVents: > setHex()
2020-01-27 10:53:00.726 Status: dzVents: > updateSoilMoisture()
2020-01-27 10:53:00.726 Status: dzVents: > switchTypeValue: 4
2020-01-27 10:53:00.726 Status: dzVents: > switchOff()
2020-01-27 10:53:00.726 Status: dzVents: > hardwareTypeValue: 64
2020-01-27 10:53:00.726 Status: dzVents: > updateBarometer()
2020-01-27 10:53:00.726 Status: dzVents: > pause()
2020-01-27 10:53:00.726 Status: dzVents: > updateCounter()
2020-01-27 10:53:00.726 Status: dzVents: > setKelvin()
2020-01-27 10:53:00.726 Status: dzVents: > dimTo()
2020-01-27 10:53:00.726 Status: dzVents: > id: 114
2020-01-27 10:53:00.726 Status: dzVents: > updatePercentage()
2020-01-27 10:53:00.726 Status: dzVents: > setValues()
2020-01-27 10:53:00.726 Status: dzVents: > updateSoundLevel()
2020-01-27 10:53:00.726 Status: dzVents: > updateP1()
2020-01-27 10:53:00.726 Status: dzVents: > setIcon()
2020-01-27 10:53:00.726 Status: dzVents: > increaseBrightness()
2020-01-27 10:53:00.726 Status: dzVents: > updateCustomSensor()
2020-01-27 10:53:00.726 Status: dzVents: > hardwareID: 10
2020-01-27 10:53:00.726 Status: dzVents: > _data:
2020-01-27 10:53:00.726 Status: dzVents: > timedOut: false
2020-01-27 10:53:00.726 Status: dzVents: > rawData:
2020-01-27 10:53:00.727 Status: dzVents: > 1: 195.000
2020-01-27 10:53:00.727 Status: dzVents: > 2: 10739700.000
2020-01-27 10:53:00.727 Status: dzVents: > subType: kWh
2020-01-27 10:53:00.727 Status: dzVents: > switchType: X10 Siren
2020-01-27 10:53:00.727 Status: dzVents: > description: Zonnepanelen
2020-01-27 10:53:00.727 Status: dzVents: > lastLevel: 0
2020-01-27 10:53:00.727 Status: dzVents: > name: Opgewekte zonne-energie
2020-01-27 10:53:00.727 Status: dzVents: > lastUpdate: 2020-01-27 10:52:21
2020-01-27 10:53:00.727 Status: dzVents: > id: 114
2020-01-27 10:53:00.727 Status: dzVents: > baseType: device
2020-01-27 10:53:00.727 Status: dzVents: > data:
2020-01-27 10:53:00.727 Status: dzVents: > _state: 195.000;10739700.000
2020-01-27 10:53:00.727 Status: dzVents: > hardwareType: SolarEdge via Web API
2020-01-27 10:53:00.727 Status: dzVents: > _nValue: 0
2020-01-27 10:53:00.727 Status: dzVents: > usage: 195 Watt
2020-01-27 10:53:00.727 Status: dzVents: > whActual: 195
2020-01-27 10:53:00.727 Status: dzVents: > icon: current
2020-01-27 10:53:00.727 Status: dzVents: > whTotal: 10739700
2020-01-27 10:53:00.727 Status: dzVents: > protected: false
2020-01-27 10:53:00.727 Status: dzVents: > unit: 1
2020-01-27 10:53:00.728 Status: dzVents: > counterToday: 0.100 kWh
2020-01-27 10:53:00.728 Status: dzVents: > hardwareName: SolarEdge PV system
2020-01-27 10:53:00.728 Status: dzVents: > hardwareID: 10
2020-01-27 10:53:00.728 Status: dzVents: > hardwareTypeValue: 64
2020-01-27 10:53:00.728 Status: dzVents: > signalLevel: 12
2020-01-27 10:53:00.728 Status: dzVents: > batteryLevel: 255
2020-01-27 10:53:00.728 Status: dzVents: > changed: false
2020-01-27 10:53:00.728 Status: dzVents: > deviceType: General
2020-01-27 10:53:00.728 Status: dzVents: > switchTypeValue: 4
2020-01-27 10:53:00.728 Status: dzVents: > deviceID: 00000001
2020-01-27 10:53:00.728 Status: dzVents: > state: 195.000;10739700.000
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Retrieve total amount of energy production

Post by freijn »

Steef

please do one step more.. Instead of going to the Website, goto your inverter and update as frequent as you like with lots of
details as well like inverter temp and even Hz information.

https://www.domoticz.com/forum/viewtopi ... 3&start=60

I kick of the script when the P1 triggers my domoticz and calculate how much the house is "eating" from the PV :-)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest