For some reason I cannot have the baterry status to work. It always shows 0%. Is anybody having the same issue or can anyone help with fixing it?
Unplug the HEM from the wall/USB power and let it run on batteries for a few minutes. It will eventually update the battery status.
Thanks I just did now the red LED is off, I will wait few minutes see if it will update the battery status. If and once it does, I can plug it back in?
Yup! It may take a few minutes, but not hours. I can’t remember how long I waited, but it was short. I can’t remember if the LED stays on when on batteries or not, but I’ll see what I can find and if mine does.
ok, I just checked mine, and the LED is on when I ran on batteries. After unplugging power, press the black button on the back and the LED should flash and stay lit. When you plug power back in, the LED should flash. If not, press the button again and it will stay solid red.
Thanks I have tried what you said it worked, the baettery status worked I plugged the power back on, pushed the black button. After few min of it working properly the battery status is now back to showing 0%
What did the app show when it was running on batteries, before you plugged it back in? If you change the parameters for battery reporting to something less than the default (900 sec, or 15 minutes), that may force a battery readying; otherwise you may have to wait the default time.
Everything was showing normally and the battery status was showing 100%. Then I pluggeg the power back in after maybe 5min I received a push notification saying the battery was at 0%.
What line should I change for the battery reporting parameters?
That’s in the preferences section, which is the via gear in the upper right corner. I’m not sure why the battery went back to 0 because it should retain the last value sent by the device.
Hi All,
I created a new version of my DTH that makes it easier for me to maintain because my new version allows you to select if you want the battery % to show up in the main tile, or not, via the device’s Preferences. Instead of maintaining 2 DTH’s, I just need to maintain this new one:
A few notes:
- This DTH is only for the Aeon HEM Gen 1 device.
- After changing to this DTH, please make sure to go to Preference and select how you want battery reporting on the main tile.
- There isn’t a way to know - and report on - when the device is running on USB power or batteries.
- This DTH is not for use when you want individual readings from each clamp. Please search the Community for that DTH.
- If switching to this DTH from one that reads clamps separately, you’ll have to reset the HEM first. I also recommend excluding and deleting the device from ST to remove the variables not used between the two DTH’s. You’ll know what I mean when you look in Preferences after switching DTH’s.
- If you use GitHub integration, look for “My Aeon Home Energy Monitor Gen1” in my repo.
- If you overwrite your existing code with the new code I posted above, the DTH name will also change.
- My original code for the battery and no-battery version still exists in my GitHub repo. I will soon stop maintaining those versions.
- The way those icons show up in the 1x1 squares, and then disappear, is still wonky. I need ST to fix some mobile app issues for that to go away.
- If you’ve selected battery % to show up, and all it reports is blank, be sure to have good batteries in your HEM and then unplug USB power so it runs on batteries for a few minutes. Plug it back in and battery % should show up. If it still doesn’t, change the battery reporting interval to 60 seconds instead of 600 and try again. Once you get it working right, change the interval back to something more reasonable.
Here are a couple screenshots of the DTH:
UPDATE reset the min and max and closed App all came back on reload. Thanks again for a great device handler.
One quick question. I understand that if not on battery there is no way for the DH to know. So the ( ! ) mark on the main screen will still show as 0 % battery remaining. Is that correct?
Interesting. Because “battery” is still a capability that needs to be there, I suppose the new functionality ST has built into the platform is causing that. I have an idea on to address that, so let me make a couple changes and post an update. I’ll let you know so that you can try for me. Okay?
Yes of course, I will wait for you. ST is flaky tonight, couldn’t get into IDE kept going back to logon after every change I did to each device.
Thanks! I just pushed an update. Can you try that for me please? You should change the battery reporting interval to 60 seconds just in case to force the HEM to send a battery reading even though you’re not using batteries.
Let me know how that goes. I have one other change I’m looking in to as well.
OK installed and set the battery reporting which I guess was the last option to 60 from 65000. I still see 0% battery on main screen of app.
OK the IDE is really screwed up it just started working, GREAT JOB!!!
lol, thanks Joel. Since I don’t have an iOS device to test with, how does the DTH look on your device? Can you send along a screenshot?
Thanks, I’ll take you up on that offer!
The battery/plug icon looks so much different! On iOS it’s actually black, which is what the icon really is, but on Android it’s changed to the color of the text, which ST defaults to white. Even text alignment is wonky.
Maybe some day those difference will go away, but it’s unlikely we’ll see that happen for some time…
Thanks for helping me debug this DTH.