Use msg to check for total_watts==0 and fix missing self.