Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Production not working in energy panel


JortC
 Share

Question

Hi,

 

I currently have my hc3 setup with the quickapp p1 meter for house energy metering and made my own quickapp for metering the solarpanels. I used most of the code from the p1 quickapp to make sure it would work simply because I am not a coding wizard sadly :).

I started running my quickapp and it worked like a charm, except for the energy panel aspect. I was producing megawatt houres of energy... 

The consumption also was acting up wierd at the same time.

Please login or register to see this attachment.

 

The child app resposible for reading the kwh data from the Growatt inverter is setup as an energyMeter like this:

{name="Zon productie vandaag", className="ProductionToday", type="com.fibaro.energyMeter"}

 

some more code of this child:

class 'ProductionToday'(QuickAppChild)
function ProductionToday:__init(device)
    QuickAppChild.__init(self, device) 
    self:updateProperty("rateType", "production")
end
 
function ProductionToday:updateValue(devicedata)
    self:updateProperty("value", tonumber(devicedata.epvtotal)) --tonumber(devicedata.epvtotal)
    self:updateProperty("unit", "kWh")
    self:updateProperty("log", devicedata.update_timestamp)
end

 

When I noticed it starting to register megawatts I removed the line of code responsible for saving the data.

self:updateProperty("storeEnergyData", true)

 

While coding this quickapp I came across multiple "special" ways of fibaro to register certain types of data.

My question now is, how does fibaro read this kwh data and process it?

 

Please login or register to see this image.

/monthly_2022_10/image.png.dffdc0ce0f6ef82406aa1f9aeeab7dfb.png" />

 

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0
29 minutes ago, JortC said:

Does the energy panel code check for deltas or does it periodicaly check and change panel values according to the QA values

Yes it does. The energy panel is kind of sensitive to strange values. Look at the SolarEdge Quickapp what I had to do, to handle decreasing values. 

  • Thanks 1
Link to comment
Share on other sites

  • 0
26 minutes ago, JortC said:

I currently have my hc3 setup with the quickapp p1 meter for house energy metering and made my own quickapp for metering the solarpanels.

 

Hi Jort,

 

Most likely your house energy meter levels out consumption with production. So if your consumption is 100 and production is 300 the energy meter wil show 0 consumption and 200 production. 

 

If you use your Growatt quickapp with the solar energy for your energy panel, you will put 300 production from the Growatt quickapp and put 0 consumption from your P1 Monitor quickapp to your energy panel.

 

So the way to use your energy consumption and production, is to put the consumption and production of your P1 Monitor quickapp in your energy panel and use your Growatt quickapp only for insight of your actual production or nice graphs. 

 

(Also: the energy panel works with kWh not kilowatt or megawatt.)

 

Link to comment
Share on other sites

  • 0
  • Inquirer
  • 1 hour ago, SmartHomeEddy said:

     

    Hi Jort,

     

    Most likely your house energy meter levels out consumption with production. So if your consumption is 100 and production is 300 the energy meter wil show 0 consumption and 200 production. 

     

    If you use your Growatt quickapp with the solar energy for your energy panel, you will put 300 production from the Growatt quickapp and put 0 consumption from your P1 Monitor quickapp to your energy panel.

     

    So the way to use your energy consumption and production, is to put the consumption and production of your P1 Monitor quickapp in your energy panel and use your Growatt quickapp only for insight of your actual production or nice graphs. 

     

    (Also: the energy panel works with kWh not kilowatt or megawatt.)

     

     

    I'm not really understanding the problem here, when for example the solar panels produce 400 and the consumption is 200 the p1 quickapp activepower will actually show -200. This resulted in false values in the yubii app for active consumption so I fixed this by adding another child that hows grid use and another that shows active watt flowing back in to the grid (both handled by checking if active power is negative or not), I had to do this due to the necessary inputs needed for the energy panel configuration i'm running.

     

    Because of this odd setup the p1 quickapp only registers the kWh of the "sold" energy to the grid and not the true daily generated power. (sum of used power from solar and sold power from solar in kWh).

     

    Without enabling the save to database, the production tab in the energy panel stays on 0.

    But if it is enabled, it incrementally steps up both produced and consumed to unrealistic numbers as shown in first post.

    Please login or register to see this attachment.

    clarification: "energy production meters" and "instantaneous power production meters" are both values pulled from the growatt QA.

    "actief teruglevering" -> Active production sold to grid.

    "actief net verbruik" -> Active usage from the grid

     

    • Like 1
    Link to comment
    Share on other sites

    • 0

    The P1 Monitor quickapp child devices “Todays consumption” and “Todays production” are of the type “Energy meter” and are used to insert the kWh into the energy panel. That has nothing to do with the main device. The main device just is the calculation of production versus consumption in Watt (not Wh). 
     

    The Yubii app doesn’t handle the “power” devices (watt) very well and in the next firmware you will be able to select which “watt” device will show up in the Yubii app. 
     

    If you can measure the real consumption in your house, so not production minus consumption which most energy meters do, you can use the actual solar production from your Growatt quickapp. So it depends on your energy meter setup. 

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 15 minutes ago, SmartHomeEddy said:

    The P1 Monitor quickapp child devices “Todays consumption” and “Todays production” are of the type “Energy meter” and are used to insert the kWh into the energy panel. That has nothing to do with the main device. The main device just is the calculation of production versus consumption in Watt (not Wh). 
     

    The Yubii app doesn’t handle the “power” devices (watt) very well and in the next firmware you will be able to select which “watt” device will show up in the Yubii app. 
     

    If you can measure the real consumption in your house, so not production minus consumption which most energy meters do, you can use the actual solar production from your Growatt quickapp. So it depends on your energy meter setup. 

    The "today consumption" meters of the p1 QA seem to work perfect, also in the energy panel its showing the values correctly.

    For my Growatt QA I copy pasted the exact code from the p1 QA "Today Production" and edited so it takes values from a different source and removed the code part where it resets to day values due to the growatt inverter already zeroing this every day.

    Despite this exact code copy the energy panel shows nothing. But when adding a save to database property change in the Growatt QA it starts to act up wierd in the energy panel.

    Does the energy panel code check for deltas or does it periodicaly check and change panel values according to the QA values?

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Just now, SmartHomeEddy said:

    Yes it does. The energy panel is kind of sensitive to strange values. Look at the SolarEdge Quickapp what I had to do, to handle decreasing values. 

    Will do, thanks :)

    Link to comment
    Share on other sites

    • 0
    On 10/31/2022 at 7:18 PM, JortC said:

     

    I'm not really understanding the problem here, when for example the solar panels produce 400 and the consumption is 200 the p1 quickapp activepower will actually show -200. This resulted in false values in the yubii app for active consumption so I fixed this by adding another child that hows grid use and another that shows active watt flowing back in to the grid (both handled by checking if active power is negative or not), I had to do this due to the necessary inputs needed for the energy panel configuration i'm running.

     

    Because of this odd setup the p1 quickapp only registers the kWh of the "sold" energy to the grid and not the true daily generated power. (sum of used power from solar and sold power from solar in kWh).

     

    Without enabling the save to database, the production tab in the energy panel stays on 0.

    But if it is enabled, it incrementally steps up both produced and consumed to unrealistic numbers as shown in first post.

    Please login or register to see this attachment.

    clarification: "energy production meters" and "instantaneous power production meters" are both values pulled from the growatt QA.

    "actief teruglevering" -> Active production sold to grid.

    "actief net verbruik" -> Active usage from the grid

     


    is deze QA ook te vinden op de Marketplace voor Growatt (shinelink) ?

     

    thanks alvast

    • Like 1
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Beste Stephan,

     

    Zelf heb ik niks kunnen vinden voor de shinelink en ben zelf aan de slag gegaan. Met behulp van een raspberry pi als proxy is het gelukt om realtime informatie te verkrijgen over de Growatt en met een eigen QA registreer ik die info op mijn HC3. Mocht je hier meer info over willen hebben laat ik u daar graag meer over weten.

    11 hours ago, StephanvProoijen said:


    is deze QA ook te vinden op de Marketplace voor Growatt (shinelink) ?

     

    thanks alvast

     

    Link to comment
    Share on other sites

    • 0

    Dag Jort, daar zou ik zeer graag wat meer info over ontvangen. Ik heb namelijk geen idee waar te beginnen.

    Het zou eventueel ook kunnen met een KwH meter van Homewizard, maar leuker om deze via een QA in fibaro te implementeren ;-)

     

    Groet, Stephan

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

     Share

    ×
    ×
    • Create New...