[OBSOLETE] Aeon HEM v1 DH Discussion (DTH link in post 411)

Ok, got me curious to compare, and show why I think a graphing solution is good. Here’s my January bill, not sure if they start at midnight and end at midnight, so I’m thinking that’s part of my difference, but it’s relatively small so I’m not too concerned with it. Avg per day would be 39.29kwh, so that’s within the error between the billed 1173kwh and the measured at 1218kwh. Close enough for government work…

3 Likes

Not sure what the issue could be, perhaps platform related?. It’s been working fine for me for months. It uses a simple calendar, and when you pick a day it checks to see if it should run and if not it schedules it for 1 day out.

Not sure what you mean by that. When you install the app and pick a day, here’s what you should see in Live Log:

d003deda-b159-4122-a61d-c9332645c931  6:01:14 PM: debug Scheduling next meter reset check at Thu Feb 16 2017 00:05 EST
d003deda-b159-4122-a61d-c9332645c931  6:01:14 PM: debug Current time is Wed Feb 15 2017 18:01 EST
d003deda-b159-4122-a61d-c9332645c931  6:01:14 PM: debug Check complete, now schedule the SmartApp to check the next day.
d003deda-b159-4122-a61d-c9332645c931  6:01:14 PM: debug ...HEM reset not scheduled for today because it's not when the user requested it.
d003deda-b159-4122-a61d-c9332645c931  6:01:14 PM: debug ...day user requested a reset is 1
d003deda-b159-4122-a61d-c9332645c931  6:01:14 PM: debug ...day of the month today is 15
d003deda-b159-4122-a61d-c9332645c931  6:01:14 PM: debug Check for the day of month...
d003deda-b159-4122-a61d-c9332645c931  6:01:14 PM: debug Aeon HEM v1 Reset Manager SmartApp installed, check for the user defined schedule and schedule another check for the next day

I have no idea. I changed it to 16th this morning so we’ll see if it fires tonight (1 day ahead like it did yesterday).

However, I seem to remember installing this last month and I set the reset day for the same day and it did nothing (also indicating it was one day off).

I’ll report back in the morning.

I’d have to noodle on that on for a bit, but my first reaction would be “not easily”. I suppose a SmartApp could be written, but then again what would it subscribe to so it would trigger the cost reset? I’m not saying it isn’t possible, just that your use case is a bit unique with 4 HEM’s and writing an app for that could take more time than just changing them individually.

Yeah, please do. If your’re still up at the time you scheduled it, watch Live Logging to see when debug messages are sent. You should see all the same messages I posted above, except the 1st one about the app being installed.

1 Like

It is now 9:00 PM on February 15.
I set it to 10 minutes from now, at 9:10 PM.

This is my debug log:
9:01:27 PM: debug Scheduling next meter reset check at Thu Feb 16 2017 21:10 PST
cb8ab930-3c10-45a6-87c7-a22f847f0a93 9:01:27 PM: debug Current time is Wed Feb 15 2017 21:01 PST
cb8ab930-3c10-45a6-87c7-a22f847f0a93 9:01:27 PM: debug Check complete, now schedule the SmartApp to check the next day.
cb8ab930-3c10-45a6-87c7-a22f847f0a93 9:01:27 PM: debug …HEM reset not scheduled for today because it’s not when the user requested it.
cb8ab930-3c10-45a6-87c7-a22f847f0a93 9:01:27 PM: debug …day user requested a reset is 15
cb8ab930-3c10-45a6-87c7-a22f847f0a93 9:01:27 PM: debug …day of the month today is 16
cb8ab930-3c10-45a6-87c7-a22f847f0a93 9:01:27 PM: debug Check for the day of month…
cb8ab930-3c10-45a6-87c7-a22f847f0a93 9:01:27 PM: debug Aeon HEM v1 Reset Manager SmartApp installed, check for the user defined schedule and schedule another check for the next day

I think that replicates what happened to me when I first installed the app. I installed on Jan 18th and set a reset for that night at 11:59PM. It did not reset. And it validates what happened yesterday for me when it reset a day early. Logging thinks it’s the 16th in your example if I’m reading that right, but it’s the 15th.

UPDATE: Okay, here’s my Live Logging. It’s 11:59PM on Feb 15th and my app is set to reset on the 16th:

11:59:03 PM: debug Scheduling next meter reset check at Thu Feb 16 2017 23:59 CST
11:59:03 PM: debug Current time is Wed Feb 15 2017 23:59 CST
11:59:03 PM: debug Check complete, now schedule the SmartApp to check the next day.
11:59:01 PM: debug …Resetting HEM because it’s when the user requested it.
11:59:01 PM: debug …day user requested a reset is 16
11:59:01 PM: debug …day of the month today is 16
11:59:01 PM: debug Check for the day of month…

Weird, but that doesn’t mean the code isn’t having a problem. Let me dig into this tonight. Stay tuned…

Great, thanks.

I tried to noodle around myself in the code and ran the simulator thinking that it would just simulate and now my HEM has been reset again. Frustrated as I did at least have it reset to match my electric company cycle for now before the ‘simulator’ blew my real data away.

I think I’ll leave things alone as I obviously don’t know what I’m doing.

Hi @rmm200 and @Nezmo, I did find a few issues that I need to fix, one being the first time it’s installed the app just checks for the day and NOT the time, so if you pick the same day as the day you install it, it immediately runs.

@rmm200, I can’t replicate your issue at all. After I update the app let’s see what you live logging looks like.

@Nezmo, I think I know why your logs look like that. As soon as I get the app updated I believe that should be fixed.

Just let us know when you are ready.
Any way I can help - I am happy to do so.

1 Like

@rmm200, @Nezmo,

I just updated my SmartApp. This should work as expected now. Here’s a snapshot of my Live Logging. I installed it, selected today, and then it scheduled it instead of immediately running it, and then the schedule triggered and ran, and then scheduled again for the next day. I then updated the schedule to shortly after midnight on the 1st day of the month:

8067cd91-cb48-47c6-a759-5c4c915d53b3  6:05:41 PM: debug Scheduling meter reset check at Thu Feb 16 2017 00:05 EST
8067cd91-cb48-47c6-a759-5c4c915d53b3  6:05:41 PM: debug Current time is Thu Feb 16 2017 18:05 EST
8067cd91-cb48-47c6-a759-5c4c915d53b3  6:05:41 PM: debug Aeon HEM v1 Reset Manager SmartApp updated, so update the user defined schedule and schedule another check for the next day.
8067cd91-cb48-47c6-a759-5c4c915d53b3  6:00:11 PM: debug Scheduling next meter reset check at Fri Feb 17 2017 18:00 EST
8067cd91-cb48-47c6-a759-5c4c915d53b3  6:00:11 PM: debug Current time is Thu Feb 16 2017 18:00 EST
8067cd91-cb48-47c6-a759-5c4c915d53b3  6:00:11 PM: debug Process completed, now schedule the reset to check on the next day.
8067cd91-cb48-47c6-a759-5c4c915d53b3  6:00:05 PM: debug ...resetting the meter because it's when the user requested it.
8067cd91-cb48-47c6-a759-5c4c915d53b3  6:00:05 PM: debug ...the day the user requested a reset is 16
8067cd91-cb48-47c6-a759-5c4c915d53b3  6:00:05 PM: debug ...the day of the month right now is 16
8067cd91-cb48-47c6-a759-5c4c915d53b3  6:00:05 PM: debug ...checking for the day of month requested by the user
8067cd91-cb48-47c6-a759-5c4c915d53b3  6:00:05 PM: debug Aeon HEM v1 meter reset schedule triggered...
8067cd91-cb48-47c6-a759-5c4c915d53b3  5:55:00 PM: debug Scheduling meter reset check at Thu Feb 16 2017 18:00 EST
8067cd91-cb48-47c6-a759-5c4c915d53b3  5:55:00 PM: debug Current time is Thu Feb 16 2017 17:55 EST
8067cd91-cb48-47c6-a759-5c4c915d53b3  5:55:00 PM: debug Aeon HEM v1 Reset Manager SmartApp updated, so update the user defined schedule and schedule another check for the next day.
8067cd91-cb48-47c6-a759-5c4c915d53b3  5:55:00 PM: debug Aeon HEM v1 Reset Manager SmartApp installed, now preparing to schedule the first reset.

https://raw.githubusercontent.com/constjs/jcdevhandlers/master/smartapps/jscgs350/aeon-hem-v1-reset-manager.src/aeon-hem-v1-reset-manager.groovy

Bah - I got the new version installed, and ran through the configuration options.
Now I get "You are not authorized to perform the requested operation."
Only log entry:
39b5024c-dd3f-40f4-92d1-032a35624987 3:15:56 PM: debug Aeon HEM v1 Reset Manager SmartApp installed, now preparing to schedule the first reset.
I am running SmartThings on an Android tablet. Any suggestions?

Make sure to uninstall the SmartApp from the mobile app, and/or delete the SmartApp from the IDE and recreate. It just could be a platform blip too, but try starting over first.

Awesome John. I have installed it. I don’t want to reset now; rather wait for my next billing cycle to start so I’ll set everything and report back if I get any issues.

Thanks.

1 Like

Fixed it - had to log out of SmartThings and log back in.
Trace now looks great:

4138a737-4c44-4676-8836-9c3d9d2bf270 3:30:08 PM: debug Scheduling next meter reset check at Fri Feb 17 2017 15:30 PST
4138a737-4c44-4676-8836-9c3d9d2bf270 3:30:08 PM: debug Current time is Thu Feb 16 2017 15:30 PST
4138a737-4c44-4676-8836-9c3d9d2bf270 3:30:08 PM: debug Process completed, now schedule the reset to check on the next day.
4138a737-4c44-4676-8836-9c3d9d2bf270 3:30:04 PM: debug …resetting the meter because it’s when the user requested it.
4138a737-4c44-4676-8836-9c3d9d2bf270 3:30:04 PM: debug …the day the user requested a reset is 16
4138a737-4c44-4676-8836-9c3d9d2bf270 3:30:04 PM: debug …the day of the month right now is 16
4138a737-4c44-4676-8836-9c3d9d2bf270 3:30:04 PM: debug …checking for the day of month requested by the user
4138a737-4c44-4676-8836-9c3d9d2bf270 3:30:04 PM: debug Aeon HEM v1 meter reset schedule triggered…
c1690d62-9d77-4d23-b349-4e37fc23ed31 3:30:06 PM: debug Resetting all home energy meter values…
c571d509-aff3-4858-801c-97ae5dbb1f1d 3:29:16 PM: debug lowBatteryHandler: Aeon Right HEM battery is 99%

Thanks for working on this! We would pretty much be lost without you!

1 Like

@rmm200 @Nezmo Thanks guys, and sorry for the headaches!

1 Like

You’re welcome and not at all. I don’t have the knowledge to create these apps so I appreciate all the work you put in.

Can anyone comment on the accuracy of their kWh usage according to the HEM compared to their utility bills? I’ve recently moved to a new house so I’m still learning the quirks of how much energy my home uses. After having my HEM installed for well over a month, comparing the readings on my HEM to my actual bills reveals that my kWh usage on my actual bill is three times that of what my HEM has recorded. However, if I compare my electricity usage according to the HEM to that of my previous house which was only slightly smaller, the HEM is measuring along the lines of what I would imagine I should be consuming in the winter, considering I have natural gas central heating, natural gas water heating, and gas appliances.

My initial assumption was that the HEM kWh recording was way off but after two consecutive suspiciously high utility bills, with natural gas use appearing normal or “as expected” and electric use being way higher than I would expect, I’m thinking I may be getting incorrect billings/readings or that something weird is going on with my actual electric meter.