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


Energy panel - I like it. But what is the idea?


afendikov

Recommended Posts

Hi all.

 

I set up test unit of HC3 with latest beta and write a QA to integrate my Inverter Solar Generation

So - I see now in panel Energy Production, it works. ( 1st picture )

But it shows only 1 day production and not shows yesterday ( June 29 ), which is accumulated and can be checked in device Advanced Tab ( 2nd and 3rd picture )

 

It's a bug or I'm doing something wrong?

 

Thanks

 

Please login or register to see this attachment.

Please login or register to see this attachment.

Please login or register to see this attachment.

Link to comment
Share on other sites

Energy Panel uses "energy" property for measuring consumption in actors (like switches)and for energy meter devices (com.fibaro.energyMeter) uses data stored in property "value".
Both those values needs to be kWh to work properly (consider this when creating a QA). 

Old charts (as in your screen) uses instant power (W) to calculate consumption, energy panel uses different mechanisms which utilize kWh reports.
From next beta both energy panel and summary in device will use the same data.

Link to comment
Share on other sites

Guest kallecux

It would be great if certain devices could be excluded from the energy measurement.

I would do the overall measurement with a 3-phase meter from Qubino and ignore the other devices.

Greetings!

Karl Heinz 

Link to comment
Share on other sites

  • Topic Author
  • 3 hours ago, m.roszak said:

    Energy Panel uses "energy" property for measuring consumption in actors (like switches)and for energy meter devices (com.fibaro.energyMeter) uses data stored in property "value".
    Both those values needs to be kWh to work properly (consider this when creating a QA). 

    Hi @m.roszak, thank you for answer.

    Yes, I'm using kWh data in Energy meter and Energy Panel shows Production, but only for _today_. Can you advise, why it not store data and show in yesterday graph? 

     

    As you see - device have history for all metrics - power, energy, value. advanced tab shows all data, but energy panel only for today.

     

    Edited by afendikov
    Link to comment
    Share on other sites

    Is it only my HC3 or it happens to other people too.  In the current stable firmware version (5.070.42),  I cannot update the energy property of all devices connected to the SLAVE GATEWAY.  When I save the Watt energy property, it does not state any error, but when I refresh the Watt always stay "0".  Is it fixed in this BETA version?

    Link to comment
    Share on other sites

    On 7/1/2021 at 6:18 PM, kallecux said:

    It would be great if certain devices could be excluded from the energy measurement.

    I would do the overall measurement with a 3-phase meter from Qubino and ignore the other devices.

    Greetings!

    Karl Heinz 

    Already done in next beta ;)

     

    On 7/1/2021 at 8:49 PM, afendikov said:

    Hi @m.roszak, thank you for answer.

    Yes, I'm using kWh data in Energy meter and Energy Panel shows Production, but only for _today_. Can you advise, why it not store data and show in yesterday graph? 

     

    As you see - device have history for all metrics - power, energy, value. advanced tab shows all data, but energy panel only for today.

     


    I am unable to reproduce the issue, if possible we would like to take a look tomorrow.
    We have introduced some changes in calculation algorithm (next beta) but checking it out is a good idea anyway.
    PM me if this is not a problem.

    Regards,
    Michał 
     

    Link to comment
    Share on other sites

    • 3 weeks later...
    Guest kallecux

    Good morning @m.roszak - how to exclude devices from the energy measurement?

    Thanks and greetings!

    Karl Heinz 

    Link to comment
    Share on other sites

    To stop collecting energy data for specific device we prepared a checkbox in advanced settings.
    Unfortunately it is not functional from web interface (cannot be unticked) but we are working on it, soon new version correcting this will be available.

    If you need solution right now there is a way to configure this via API using one simple request.

    Regards,
    Michał 

    Link to comment
    Share on other sites

  • Topic Author
  • On 7/20/2021 at 10:16 AM, m.roszak said:

    To stop collecting energy data for specific device we prepared a checkbox in advanced settings.
    Unfortunately it is not functional from web interface (cannot be unticked) but we are working on it, soon new version correcting this will be available.

    If you need solution right now there is a way to configure this via API using one simple request.

    Regards,
    Michał 

     

    Hi @m.roszak

    I'm trying to make API request to disable Energy Metering, but for now with no success. :(

     

    Could you please help


    local device = '1235'

    local ip = '8.8.8.8'

     

    function QuickApp:setParam()

        local function getData(url, method, headers, body)

            local http = net.HTTPClient({ timeout = 5000 })  

            http:request(url, {
                options={
                    method = method,
                    headers = headers,
                    data = json.encode(body)
                },
                success = function(response)
                    self:trace("http response status :"..tostring(response.status))
                    if (tonumber(response.status) == 200 ) then
                        self:trace('OK')
                    else
                        self:error("Response error: "..json.encode(response)) -- response.error.message)
                    end
                end,
                error = function(response)
                    self:error("Response: "..json.encode(response))
                end
            })
        end

        local body = { 
                    args = {
                        'saveToEnergyPanel',false
                           },
                    delay =30
                    }

     

        local url = "http://"..ip.."/api/devices/"..device.."/action/updateProperty"

        local APIkey = "xxx"

     

     

        local headers = {
            ['Accept']              = 'application/json',
            ['Content-Type']        = 'application/json',
            ['X-Fibaro-Version']    = 2,
            ['Accept-language']     = 'en',
            ['accept']              = '*/*',
            ['Authorization']       = "Basic "..APIkey
        }

     

        getData(url, 'POST', headers, body) 

    end

     

    Link to comment
    Share on other sites

    Please login or register to see this code.


    This is a quickest way, just put this in scene or QA.

    Regards,
    Michał 
    Link to comment
    Share on other sites

  • Topic Author
  • 7 hours ago, m.roszak said:

    Please login or register to see this code.


    This is a quickest way, just put this in scene or QA.

    Regards,
    Michał 

    Thanks! 

    Link to comment
    Share on other sites

    In current beta (5.072.25) available since yesterday option to disable saving the data from the energy meters works normally from the UI.

    • Like 1
    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
    Reply to this topic...

    ×   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.

    ×
    ×
    • Create New...