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

House consumption calculation


pablogiganti

Question

Hi,

I´ve got a z-wave clamp energy meter installed on the house mains so it measures the whole house consumption. I also have several dimmers and switches that capable of measuring consumption of devices connected to them.

1. How do I make sure that the total energy displayed in the app (see image attached) is the actual total household consumption and not the clamp meter´s consumption + each device´s consumption?

Ideally, I´d like to display the clamp meter´s consumption as the total household consumption and each device as part of it, a slice of the pie chart. Not all devices in the house have a meter so there will be a difference between the total amount of watts and the sum of all devices which I´d like to display as other/unknown.

2. Is this possible? 

Thanks,

Pablo

Please login or register to see this attachment.

Link to comment
Share on other sites

18 answers to this question

Recommended Posts

  • 0

@pablogiganti I use the P1 Monitor and have a script (quickapp) wich reads the power consumption from the P1 Monitor. It also reads the power consumption from all devices. That is calculated off the P1 Monitor consumption. The delta I put in an unused device.  
 

so I have the power consumption of all individual devices and all power consumption of non-devices. 
 

 

Please login or register to see this attachment.


 

But I still not have an energy panel, because I use a HC3 ?

 


This is the part of the code I used for the HC2:

Please login or register to see this code.


 

 

Edited by SmartHomeEddy
Link to comment
Share on other sites

  • 0
  • Inquirer
  • Hi Eddy,

    Thanks a lot for your reply. It looks way too advance for me, I thought it was just a configuration thing.

    Regards,

    Pablo

    Link to comment
    Share on other sites

    • 0

    You have a VD for retrieving the power consumption from the z-wave clamp? 
     

     

    It not that advanced, it could be integrated in the VD or a seperate VD perhaps could also be a solution.  What this short code does is:


     

    Count all the power consumption of your z-wave devices from device 1 till device [maxNodeID] 

    Please login or register to see this code.


     


    Does some small calculation: The total power consumption minus that of your z-wave devices 

    Please login or register to see this code.

     

     

     

    And put the delta power in a z-wave device [powerID] to use it in e.g. your energy panel 

    Please login or register to see this code.


     

     

    Link to comment
    Share on other sites

    • 0

    Eddy, can You advise in general, is that possibe, to integrate the following things in terms of energy:

     

    1. Fibaro HC3

    2. Energy meter (onementer.com) attached to the supplier energy counter - I have an API key, and the output result after paste this to the browser looks like in the code below.

    3. The readings are done every 15 minutes

    4. Can fibaro ask the meter every 15 minutes about values 1.8.0 and 2.8.0 and report it ?

     

    What do You think?

     

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    • 0
    1 hour ago, Enriquez said:

    1. Fibaro HC3

    2. Energy meter (onementer.com) attached to the supplier energy counter - I have an API key, and the output result after paste this to the browser looks like in the code below.

    3. The readings are done every 15 minutes

    4. Can fibaro ask the meter every 15 minutes about values 1.8.0 and 2.8.0 and report it ?


    I don’t think I can do it in just one post ? but lets see where we go

     

    1. The energy count from the HC3 can be summerized every n seconds, so you know what your z-wave devices use 

     

    2. I understand you have an quickapp to read out the energy usage from your whole house. With the usage from one you can calculate the usage of your non z-wave devices and for example store it in a not used z-wave device

     

    3. Every 15 minutes readings, ok

     

    4. Do you already have a quickapp?

     

     

    Edited by SmartHomeEddy
    Link to comment
    Share on other sites

    • 0
    Godzinę temu, SmartHomeEddy napisał:

    4. Do you already have a quickapp?

     

    Thanks for answer. I'm just beginner and investigete how to implement API data to the QA Device.

    Still a lot of learning for me. So, no any QA created yet.

    Edited by Enriquez
    Link to comment
    Share on other sites

    • 0

    Hmm. Thanks for advise. Quick review of Your topic showm to me, that I also have this P1 Monitor, but little modified to monitor the solar panels production.

    We call it in Poland PV Monitor, here is my installation cloud :)

    Please login or register to see this link.

    Link to comment
    Share on other sites

    • 0

    I don’t have the cloud storage, but I can query the Monitor itself. But maybe there is a similarity that makes the copy - paste more easy. 

    Link to comment
    Share on other sites

    • 0

    my device is sending the data to the cloud using this command

    GET /pv/get2.php?idl=12762&p=**************=#17&F16=#18&F22=#19&F19=#20&F17=#21&F18=#22&F59=#23&F58=#24&F4=#36&F1=#38

     

    where

    ***** is the key

    F4 usage

    F1 is PV production

    the rest are the DS18B20 sensors

     

    question is, how i can qurey it...

    I can view it by http page

     

    Please login or register to see this attachment.

     

    Checked and I can obtain an xml sring by sending the command 

    http://192.168.0.151/st0.xml

    but it requires user/pass

     

    and returns something like this

     

    Please login or register to see this image.

    /monthly_2020_12/image.png.2020f198a11399f4f20b4465e33e5fe6.png" />

     

     

    Edited by Enriquez
    Link to comment
    Share on other sites

    • 0

    good news, it starts to communicate with onemonitor :)

    it is translating the data table from my FIRST post 

     

    last question is how to edit this line

     

    local act_consumption = string.format("%.2f",jsonTable.lastReading.OBIS.1_8_0)
    seems not to work
     
     
    Link to comment
    Share on other sites

    • 0

    @Enriquez In that part of the code the variables get filled with the values in the json table. The "string.format" part only sets the value to two decimals, you can loose that part for now, so: 

     

    Please login or register to see this code.

     

    But assuming the values are in the jsonTable. That is arranged above this part of the code. In this part the values get in the jsonTable:

     

    Please login or register to see this code.

     

    Change this to:

     

    Please login or register to see this code.

     

    I have some doubt whether you actually get the values from the device. Maybe it is XML. The debug messages will tell you if that is the case. 

     

     

     

     

     

     

     

     

    For the forum members reading this post:

     

    This is the example source code for the P1 Monitor:

     

    Please login or register to see this code.

     

     

     

    Edited by SmartHomeEddy
    Link to comment
    Share on other sites

    • 0

    Hi Eddy, the command 

    self:debug("jsonTable",jsonTable) -- To see in debug if there is something in jsonTable
     
    gives me the result
    [14.12.2020] [20:40:01] [DEBUG] [_ONEMETER_144]: jsonTable table: 0xfd47720
    Link to comment
    Share on other sites

    • 0

    The strange debug of jsonTable is ok, that is because it is a table, no worrie. 
     

    I have send you a message for the next step. 
     

    Link to comment
    Share on other sites

    • 0

    In relation to the preparation of a new energy panel in api within this area, some changes will occur to properly support the new possibilities of the energy panel

    Link to comment
    Share on other sites

    • 0

    That's great news. 

    With the BIG help of SmartHomeEddy, I was able to integrate popular devices: OneMeter and PV Monitor. Many thanks for that.

    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.

    ×
    ×
    • Create New...