// autostart reads the enabled state from charger
// use function instead of jq to honor evse/state updates
autostart reads the enabled state from charger
use function instead of jq to honor evse/state updates
// autostart reads the enabled state from charger // use function instead of jq to honor evse / state updates
func (wb *Warp) autostart() (bool, error) {
	var res struct {
		AutoStartCharging bool `json:"auto_start_charging"`
	}
	s, err := wb.enabledG()
	if err == nil {
		err = json.Unmarshal([]byte(s), &res)
	}
	return res.AutoStartCharging, err
}
func ( wb * Warp ) autostart ( ) ( bool , error ) { var res struct { AutoStartCharging bool `json:"auto_start_charging"` } s , err := wb . enabledG ( ) if err == nil { err = json . Unmarshal ( [ ] byte ( s ) , & res ) } return res . AutoStartCharging , err }
autostart reads the enabled state from charger
use function instead of jq to honor evse/state updates
autostart reads the enabled state from charger use function instead of jq to honor evse / state updates