// isEnabled reads enabled status from mqtt
isEnabled reads enabled status from mqtt
// isEnabled reads enabled status from mqtt
func (wb *Warp) isEnabled() (bool, error) {
	enabled, err := wb.autostart()
	var status warp.Status
	if err == nil {
		status, err = wb.status()
	}
	if enabled {
		enabled = status.ChargeRelease != 2
	} else {
		enabled = status.VehicleState == 2
	}
	return enabled, err
}
func ( wb * Warp ) isEnabled ( ) ( bool , error ) { enabled , err := wb . autostart ( ) var status warp . Status if err == nil { status , err = wb . status ( ) } if enabled { enabled = status . ChargeRelease != 2 } else { enabled = status . VehicleState == 2 } return enabled , err }
isEnabled reads enabled status from mqtt
isEnabled reads enabled status from mqtt
// check that charge_release is not blocked // check that vehicle is really not charging