This will likely fix it (for future measurements): Why an availability template is important for energy template sensors