func (v *Provider) SoC() (float64, error) {
	res, err := v.apiG()

	if res, ok := res.(StatusData); err == nil && ok {
		return float64(res.EvStatus.BatteryStatus), nil
	}

	return 0, err
}
// SoC implements the api.Battery interface
SoC implements the api.Battery interface
// SoC implements the api . Battery interface
func (v *Provider) SoC() (float64, error) {
	res, err := v.apiG()
	if res, ok := res.(StatusData); err == nil && ok {
		return float64(res.EvStatus.BatteryStatus), nil
	}
	return 0, err
}
func ( v * Provider ) SoC ( ) ( float64 , error ) { res , err := v . apiG ( ) if res , ok := res . ( StatusData ) ; err == nil && ok { return float64 ( res . EvStatus . BatteryStatus ) , nil } return 0 , err }
SoC implements the api.Battery interface
SoC implements the api . Battery interface