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

Fibaro HC2 energy data reset from LUA code?


Question

Posted (edited)

Hello all,

 

If event database get very big it can cause bad performance and even failure of HC2. When that happens usually it is necessary to contact [email protected] and ask them to clean this database.

 

Since large portion of this database are energy readings users can first try to clean energy data from event database by going to

Configuration --> General and use provided button there [Reset energy data].

Please login or register to see this spoiler.

But, there is a catch in doing this! You will loose all historical energy data stored before reset and you will not be able to show graph anymore and have overview of your total consumption for the current year.

 

So the best time to reset energy data is January 1st between "00:00" and "00:01", so in the first minute of each year.

 

Now QUESTION:

Is there a way to reset this energy data from LUA code? It would be nice to automate this action and that we do not need to think and remember to press that button in the festive New Year night! Thank you!

 

NOTE - I ask for HC2, but it would be nice to know if same is possible on HC3 family too! :-)

 

Edited by Sankotronic
typos

1 answer to this question

Recommended Posts

  • 0
Posted

@SankotronicHi, I don't know a lua scene for hc2 doing this.

 

For hc3/hc3l:

 

To manually reset the history. The QA is in the fibaro market place for free

Please login or register to see this link.

. This QA will not reset power energy data like kWh

 

To also have a schedule, I found a QA at this web shop

Please login or register to see this link.

for 5 pounds

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