Updated May 26, 2020
Changes:
- Added accumulated energy (kWh). That value is accumulated from when the device first joined the hub. There is no device reset, so I used state attributes to reflect a reset. IDE still shows the overall total, and total since last reset (which is what the mobile app shows).