Power Meter Plugin

Posted on
Fri Jul 04, 2014 7:36 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Power Meter Plugin

Folks,

I am currently working on a Power Meter plugin, which will log and monitor power usage. Right now, I am developing it using the DSB09104 Zwave whole house power monitor.

Right now, I am concentrating on the logging functions. But I plan to add some form of power spike detection, and power usage warning(s).

Any suggestions, comments and feedback would be appreciated.

Right now, after running a converter, a CSV file will be created from the gathered data. For example:

Code: Select all
Power Meter Day-Year    Average Load    High Load   Low Load    Beginning KWh   KWH for Today   Time Stamp
793229830   182-2014      0             230.649     167.84      167.84          62.809         0
793229830   183-2014      2689.3085     291.71      231.27      231.27          60.4 39        0
793229830   184-2014      2339.8927     345.694     292.111     292.111         53.583      0
793229830   185-2014      1046.1687     354.508     346.097     346.097         8.4110         0

As you can see, we can get some quick basic data and historical data regarding usage.

The readings are currently taken every 15 minutes, and the raw data is also available for examination as well. I plan to make the interval configurable, but every 15 minutes seems to be reasonable to start with.

Once it is imported in a spreadsheet app, you than can quickly review the data, and or manipulate it (e.g., get weekly averages, etc).

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sat Jul 05, 2014 8:56 am
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Re: Power Meter Plugin

Future Congrats Ben for starting the development of this newest plugin!
Excited to take it for a spin when it becomes available. :)

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Posted on
Thu Jul 10, 2014 1:19 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Power Meter Plugin

Okay, I have almost finished the first public beta for the Energy Data plugin.

I have decided on reporting the following data in the exportable CSV file.

Code: Select all
"Power Meter"  Date Day-Year    "Avg Hourly Usage"  High Load   Low Load    "Beginning KWh" "KWH for Today"
793229830   6/29/14  180-2014                                                   45.601          40.53
793229830   6/30/14  181-2014                                                   86.131          80.971
793229830   7/1/14   182-2014                                                   167.84          62.809
793229830   7/2/14   183-2014       2689.3085                                   231.27          60.44
793229830   7/3/14   184-2014       2339.8928                                   292.111         53.583
793229830   7/4/14   185-2014       1748.3084       8275.52     346.097         346.097         42.652
793229830   7/5/14   186-2014       2563.5757       10679.35    470.14          389.04          57.535
793229830   7/6/14   187-2014       2023.6206       5971.68     858.66          456.455         32.362
793229830   7/7/14   188-2014       969.4872        1446.17     588.83          488.817         5.837
                           
Averages                    Hourly  2055.698867     6593.18     565.93175               Daily   48.52433333
                            24 hrs  49336.7728                                      30 Day Avg  1455.73             


The plugin will write data files ("energy usage for week XX-YYYY.pickle") to the ~/Documents/Energy_data folder. A plugin Menu Option will take these data files, and export them into a daily.csv data file.

There are several reasons for this, but the main one is that you still have access to the historical data, in a convenient "storage" place, but more importantly the plugin will only be storing a weeks worth of data at any time. So in this way, the plugin keeps it's own memory requirement low, but still makes the data easily accessible to you. And you can then take all the *2013.pickle files, and put them into another folder, yet still have them available if you need to access that data at a later date.

Just to give an idea, right now the plugin polls every 15 minutes.

4 * 24 = 96 data points per day (minimum) (You will have an additional data point each time you reset/restart the plugin)
96*7 = 672 data points per week

On average, this seems to work out to be about 11-12 K per day, so each week's worth of data works out to be less than 90K per week in the "energy usage for week XX-YYYY.pickle".

If anyone would like to volunteer to help test this, and give me feedback, I would greatly appreciate it.

Please contact me at Benjamin AT schollnick DOT net.

Please keep in mind, this will be a beta.

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Thu Jul 10, 2014 10:20 pm
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Re: Power Meter Plugin

Looking good!

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Posted on
Sun Jul 13, 2014 9:24 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Public Beta

Folks,

The public beta is here.

https://dl.dropboxusercontent.com/u/241 ... 20Beta.zip

Now please keep in mind, this is a beta. While I have tested it, and it works well here, there are always the possibility of issues cropping up.

Please report any issues, and any suggestions.

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Mon Jul 14, 2014 8:19 am
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Re: Power Meter Plugin

Hello Ben,

Would it be possible to have these results displayed in a control page?

Thanks for the sharing the link to the beta plugin!

Toran

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Posted on
Mon Jul 14, 2014 3:40 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Power Meter Plugin

T-Power wrote:
Would it be possible to have these results displayed in a control page?


At this point, no. I had considered it, but I couldn't find any "spreadsheet" equivalent JQuery plugin (or equivalent) that would allow the CSV file to be imported, and calculate the formula's.

So, if I do a control page, it would have to be tallied by the application, and wouldn't allow any online editing.

I may look at this once I am reasonably happy with this plugin, and after I finish the rewrite of the Thermostat enhancement plugin.

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Mon Jul 14, 2014 3:44 pm
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Re: Power Meter Plugin

Thanks Ben

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Posted on
Fri Jul 18, 2014 3:24 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Power Meter Plugin

Anyone have any comments, or suggestions for the Power meter plugin at this time?

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Fri Jul 18, 2014 6:28 am
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Re: Power Meter Plugin

Looks like I've got this thread all to myself...for now :)

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Posted on
Sat Jul 19, 2014 5:30 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Power Meter Plugin

I have been thinking about getting one of these meters and if I do, will definitely be using this plugin.

I had been toying with the idea of writing one to estimate power usage based on a list of devices, but never got around to it.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat Jan 10, 2015 5:58 am
loafbread offline
Posts: 137
Joined: May 25, 2009

Re: Power Meter Plugin

I have a Z-Wave Energy Meter DSB28. Your plugin does not seem to recognize it. Do you plan to support the DSB28?

Posted on
Sat Jan 10, 2015 7:15 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Power Meter Plugin

loafbread wrote:
I have a Z-Wave Energy Meter DSB28. Your plugin does not seem to recognize it. Do you plan to support the DSB28?

Ditto. I was so bold as to add the following device model to my copy of the plugin:

Code: Select all
Home Energy Monitor (DSB28)

Which now seems to work well. I'll keep an eye on it and let you know if I see anything hinky.

Thanks for the effort, Ben.
Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sun Jan 11, 2015 1:46 pm
loafbread offline
Posts: 137
Joined: May 25, 2009

Re: Power Meter Plugin

DaveL17 wrote:
Ditto. I was so bold as to add the following device model to my copy of the plugin:

Code: Select all
Home Energy Monitor (DSB28)

Which now seems to work well. I'll keep an eye on it and let you know if I see anything hinky.



I have two DSB28s. It looks like the plugin code searches for the first DSB28 then finds a mismatch between what it found and what I configured. I had to hardcode my DSB28 id as a testing hack. I'll see how it goes.

Thanks Dave for the tip.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests