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 report 0.3.6

   (1 review)

3 Screenshots

About This File

Energy report - version 0.3.5

 

This script is for anyone not using HEM (Home Energy Meter) by Aeotec or Qubino for example, but having a

lot of zwave switches and wants to measure their energy consumption.

 

This script automatically recognizes devices with energy consumption measurment. It‘s also possible to exclude

any device from the report (e.g. with a very small energy consumption) or configure the report to only monitor

the manually entered devices.

 

The consumption report can be created on any day of a month and can report for any selected time period.

 

For more information, see the attached PDF.

 

Thanks to @pblacky who had the idea for this script.

Thanks @Cannon_82 for being so nice to share an icon for this scene.

 


What's New in Version 0.3.6   See changelog

Released

LUA code adapted to HC3.

 

  • Like 3
  • Thanks 3
 Share


Other Files from jwi


User Feedback

Recommended Comments

Hello, 

 

works well. 

Is it possible to make the report by hour ? 

(day 2 , 13:00  hour consumption 100 kwh )

 

thank you 

 

Link to comment
Share on other sites

4 hours ago, Lenny22 said:

Hello, 

 

works well. 

Is it possible to make the report by hour ? 

(day 2 , 13:00  hour consumption 100 kwh )

 

thank you 

 

Thank you too

 

If I understood you correctly, for this purpose you need to change the trigger (conditions) on the left.

Analogous to your example: value = { "00", "13", "2", "*", "*", "*" }

Here the script would start every 2nd of the month at 1:00 p.m.

In order for an email to be sent, you also have to change the variable maildays.

Link to comment
Share on other sites

the deal is that i´m buying energy from  stock exchange and the price changes every hour.  

so i would like to have report for every hour of the day oft the month. 

 

to e.mail it will send what ? report or notification ? 

 

thank you 

 

Link to comment
Share on other sites

Actually the script is not designed for such short periods of time. But you can do it with a little unsightly hack.
 
In the left side (Conditions/triggers) change the value to 1 hour so that the script starts every hour. " value = { "0", "*", "*", "*", "*", "*" } "
 
In the script itself, replace the line "sek = ndays * 86400" with "sek =3600" as the basis for the calculation.
 
After the lines:
local consumption= 'Total consumption-------------: '.. kilowatts .. ' kWh'..'</br>'
local tcosts = 'Total costs-------------------: '.. sum .. ' '..currSymbol
 
Add the following lines:
hub.alert('push', {2,}, "Last hour consuption:".. kilowatts.. " kWh") -- for push message 
print (consumption)
print (tcosts)
 
And finally, at the beginning of the script, change the variables to this value:
local maildays = {}
local debugout = false
local debughtml = false
local defDays = 1
 
This is how it should work for your needs
 
Good luck
 
Link to comment
Share on other sites

54 minutes ago, jwi said:
Actually the script is not designed for such short periods of time. But you can do it with a little unsightly hack.
 
In the left side (Conditions/triggers) change the value to 1 hour so that the script starts every hour. " value = { "0", "*", "*", "*", "*", "*" } "
 
In the script itself, replace the line "sek = ndays * 86400" with "sek =3600" as the basis for the calculation.
 
After the lines:
local consumption= 'Total consumption-------------: '.. kilowatts .. ' kWh'..'</br>'
local tcosts = 'Total costs-------------------: '.. sum .. ' '..currSymbol
 
Add the following lines:
hub.alert('push', {2,}, "Last hour consuption:".. kilowatts.. " kWh") -- for push message 
print (consumption)
print (tcosts)
 
And finally, at the beginning of the script, change the variables to this value:
local maildays = {}
local debugout = false
local debughtml = false
local defDays = 1
 
This is how it should work for your needs
 
Good luck
 

 

image.png.47652ff7e4bec6ed1f591cc75be19155.png

 some thing is wrong here. 

image.png.ef874d8be9e0a79481004467b57a6a58.png

what should i change ? 

Thank you 

Link to comment
Share on other sites

I'm no longer familiar with the HC2 syntax

 

Just try: fibaro:call(2, 'sendPush', consumption )

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
Add a comment...

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