Try this driver ported by @brianwilson:
https://raw.githubusercontent.com/bdwilson/hubitat/master/Drivers/zwave-metering-switch.groovy
described previously in this thread