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 consumption by email with HC3 Lite


Ilie
 Share

Recommended Posts

I have some device connected to z-wave plugs that can measure the energy consumption and aeon labs plugs are used.

Now I would like every month a report how many kWh, all summary of consumption. Best would be to get that report by email.

Is something like this possible in the HC3 lite with LUA?

 

Can anybody help me to get started:

- how to get all consumption summary 

- how to send an email

- how to run the script only once per month

 

Thanks 

Link to comment
Share on other sites

1. Use the Energy Panel API

2. send an e-mail with: fibaro.call({userID1, userID2 }, "sendEmail", "Subject", "Message")

3. Schedule it with Lua triggers by Fibaro. See: 

Please login or register to see this link.

 

and mold it all together!

 

I hope this sets you in the right direction.

  • Like 1
Link to comment
Share on other sites

On 3/8/2022 at 12:59 PM, Ilie said:

Can anybody help me to get started:

- how to get all consumption summary 

- how to send an email

- how to run the script only once per month

 

simple scene, total consumption, from last month, set to run on each 1st day of the month at 00:15.

 

trigger section

Please login or register to see this code.

 

code section

 

Please login or register to see this code.

 

you can play with swaggr to see what else might be useful for you, i took the "consuption" overall, but there are other fields as well

 

Please login or register to see this spoiler.

 

 

Edited by tinman
  • Like 3
  • Thanks 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.

 Share

×
×
  • Create New...