// totalEnergy implements the api.MeterEnergy interface - v2 only
totalEnergy implements the api.MeterEnergy interface - v2 only
// totalEnergy implements the api . MeterEnergy interface - v2 only
func (c *GoE) totalEnergy() (float64, error) {
	resp, err := c.api.Status()
	if err != nil {
		return 0, err
	}
	var val float64
	if res, ok := resp.(*goe.StatusResponse2); ok {
		val = res.TotalEnergy()
	}
	return val, err
}
func ( c * GoE ) totalEnergy ( ) ( float64 , error ) { resp , err := c . api . Status ( ) if err != nil { return 0 , err } var val float64 if res , ok := resp . ( * goe . StatusResponse2 ) ; ok { val = res . TotalEnergy ( ) } return val , err }
totalEnergy implements the api.MeterEnergy interface - v2 only
totalEnergy implements the api . MeterEnergy interface - v2 only