Does any one have a power monitor piston using a whole house meter? I just picked up a Gen 5 AeoTec HEM. Looking for ideas.
Power Monitor Piston
Like this?
ββββββββββββββββββββββββββββββββββββ¦ββββββββββββββββββββββββββββββββββββββββββββββββ¦βββββββββββ¦ββββββββββββββββββββββββββββββββββββββββββββ
β β Power ON time (d hh:mm) β Max. W β Energy (kWh) β
β Device β Today β Yesterday β This monthβ Last monthβ Today β Today β YesterdayβThis monthβLast monthβ
β βββββββββββββββββββββββββββββββββββ¬ββββββββββββ¬ββββββββββββ¬ββββββββββββ¬ββββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ£
β Garage Battery Charger β 00:00 β 00:00 β -02:01 β 00:00 β 0.0 β 0.0 β 0.0 β 1.9 β 0.0 β
β Garage Refrigerator β 09:09 β 23:59 β 21d 06:56 β 28d 02:24 β 185.0 β 0.8 β 2.2 β 66.0 β 81.6 β
β Hallway Water Heater β 00:04 β -02:04 β -1d 04:41 β 2d 02:40 β 4699.0 β 0.3 β 5.2 β 87.5 β 87.8 β
β Kitchen Beverage Refridgerator β 05:34 β -17:30 β -06:44 β -1d 20:23 β 106.0 β 0.6 β 1.3 β 39.4 β 50.7 β
β Kitchen Freezer Outlet β 06:05 β -01:55 β -3d 05:10 β -1d 06:30 β 173.1 β 0.9 β 2.6 β 68.8 β 80.0 β
β Kitchen Ice Maker β 09:09 β 23:59 β 23d 23:59 β 29d 22:28 β 274.0 β 1.1 β 4.9 β 100.0 β 86.3 β
β Kitchen Nespresso Machine β 00:00 β 00:14 β 03:55 β 03:37 β 0.0 β 0.0 β 0.1 β 1.8 β 1.6 β
β Kitchen Refridgerator Outlet β 03:54 β 00:44 β -1d 17:27 β -2d 04:37 β 174.0 β 0.3 β 1.2 β 33.0 β 38.3 β
β Kitchen Washing Machine β 00:00 β 00:37 β 06:08 β 05:34 β 3.4 β 0.0 β 0.1 β -51.1 β 3.3 β
β Pool Pump β 00:00 β 07:49 β 10d 21:10 β 10d 12:13 β 0.0 β 0.0 β 11.6 β 319.8 β 330.4 β
ββββββββββββββββββββββββββββββββββββ©ββββββββββββ©ββββββββββββ©ββββββββββββ©ββββββββββββ©βββββββββββ©βββββββββββ©βββββββββββ©βββββββββββ©βββββββββββ
I still need to figure out why time is negative sometimesβ¦
Count how long lights are on?
Getting these errors back to back.
11:38:52 AM: error β An error occurred while executing the event: groovy.lang.MissingMethodException: No signature of method: script1503518895827397514752.isNumber() is applicable for argument types: () values: [] Possible solutions: resume() @ line 7042
11:38:52 AM: error β Error calling comparison comp_is_equal_to: groovy.lang.MissingMethodException: No signature of method: script1503518895827397514752.isNumber() is applicable for argument types: () values: [] Possible solutions: resume() @ line 7042
11:38:27 AM: error β An error occurred while executing the event: groovy.lang.MissingMethodException: No signature of method: script1503520711103397514752.isNumber() is applicable for argument types: () values: [] Possible solutions: resume() @ line 7042
11:38:27 AM: error β Error calling comparison comp_is_equal_to: groovy.lang.MissingMethodException: No signature of method: script1503520711103397514752.isNumber() is applicable for argument types: () values: [] Possible solutions: resume() @ line 7042
Devices are 2 smartthings outlets and 1 AeoTec HEM Gen 5. Everything else is untouched
Adyβs update today fixed this. Should work now.
08/30/2017 >>> v0.2.0e6.20170830 - BETA M2 - Minor fixes regarding some isNumber() errors and errors with static variables using non-defined variables, also updated installation to check for location/timezone setup
This is close to what I am trying to doβ¦Wellβ¦trying in my mind, I havenβt actually tried to attempt to write this Piston.
I have an Electric Car and I would like to do the following with WebCoRE:
Send Notification - "Car is Now Charging"
Easy enough
If Power Stays Above βXβ Watts for βXβ Minutes
Then
Send Notification - βCar is Now Chargingβ
I have no idea how to do the following:
Send Notification after Car has stopped Charging - βCar Charged for a Total of {Hours:Minutes} Using {X} kWh Costing Approximately {$.}β
To complicate things, I would like for webCoRE to send me a report every month at the close of the Utility Bill Cycle. This seems more in line with the Piston linked by @ady624 but donβt know where to start to send the Notification Report:
Send Notification - βThis Month, Car Charged for a Total of {Hours:Minutes} Using {X} kWh Costing Approximately {$.}β
Finally each month at the end of the billing cycle, I would like to reset the kWh and start all over again.
If Date and Time Happens Every Month on the βXββ¦Donβt even know if this is possibleβ¦
Billing Cycle Ends on the 21st of each Month
Cost per kWh=.0125
I am going to attempt to do this with Simple Event Logger, IFTTT and Google Docs but wanted the challenge of having this all done within the webCoRE environment.
Thoughts?
The problem with determining the amount of kWh used for the charge is that you canβt really figure that out unless you have a dedicated meter for the car only or if your baseline is 100% predictable while charging. Mine isnβt (fridge cycling, lights, AC/heat, lights, β¦). Obviously you could estimate the amount of kWh based on the time it took to charge and the power your charger supports (typically 3.6kW or 7.2kW for level 2). Calculating the amount of $ from the charging is even trickier if you have seasonal time-of-use ratesβ¦
Here is the piston I am using to monitor my EV charging (since we have two cars sharing one charger I use the notification to swap the charger to the other car β obviously only if weβre both home and awake):
Seems if you could log the total kWh used, reported by the Power Meter, prior to the charging starting and then log the kWh after the charging stopped, the amount of time it took is irrelevant as you would only need the difference between the two for the calculationβ¦
Charging Starts-Meter is at 83.8kWh
Charging Stops-Meter is at 89.2kWH
Difference from Start to Stop=5.4kWh
Electric Rate=$0.125 per kWh
Total Cost for Charge-5.4kWh X $0.125=$.675
That works if you have a dedicated meter for your charger. Otherwise you just added your base energy usage as well.
Got this worked out but I really had to start from scratch. You guys are genius and some of the Pistons my little feeble mind just could not follow. Going to steal from you all to continue tweaking this one but my initial objective has been met.
Notify that Charging has Started
Notify that Charging is Complete with Time, Energy and Cost.
WooT!