Rule to monitor device status ON/OFF and calculating total usage

Looks like you may have eberything firgued out, but here are some useful threads…