Code for my Android compatible, solar tracking Aeon Labs HEM2 device type in this post: https://community.smartthings.com/t/another-aeontec-home-energy-monitor-device-type-add-android-solar-and-calibration/27231/2
That post also has my reset SmartApp.