Heavy Duty Switch energy consumption with Grafana

Recently installed Aeotec Heavy Duty switch to track energy consumption of a hot water cylinder. Cumulative consumption is plotting nicely but is there a way to show energy used between two data points?

See this:
http://forum.micasaverde.com/index.php/topic,25800.msg203487.html#msg203487

or this:
http://forum.micasaverde.com/index.php/topic,16082.msg237849.html#msg237849

…for example.

Wow. Copied your code from http://forum.micasaverde.com/index.php/topic,16082.msg237849.html#msg237849 into Lua Startup and changed

and (luup.attr_get (“manufacturer”, devNo) == “NorthQ”) then – it’s a local NorthQ power meter

by replacing “NorthQ” with “Aeon”

The result is fascinating. May yet get a handle on the electricity bill! Huge thanks.