Templates in command line sensor + Octopus Energy API

This thread should help you with the consumption side of things - Hildebrandglow - Smart Meters - SMETS2