jneilliii / OctoPrint-TPLinkSmartplug

105 stars 57 forks source link

Fixes modified: octoprint_tplinksmartplug/__init__.py #352

Closed puterboy closed 8 months ago

puterboy commented 8 months ago

The following pull-request addresses and fixes several bugs/feature enhancements.

Specifically,

The code covers the following 3 situations:

Note that I was maximally "liberal" in retaining rows that have information - the only rows discarded are rows with zero power and no changes in total or that are not the first return to zero power (the final element is included so that you know when power shuts off)

The GUI now reflects 'grandtotal' by passing that value to the javascript routines.

Let me know if you have any questions or concerns with any of the individual code changes.